Class Config.DigitalGyroConfig

java.lang.Object
com.inertia.promove.Config.DigitalGyroConfig
All Implemented Interfaces:
Config.AbstractConfig, Config.LegacyConfig
Enclosing class:
Config

@Deprecated
public static class Config.DigitalGyroConfig
extends java.lang.Object
Deprecated.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    boolean adoptMod  
    boolean adoptOffset  
    boolean adoptScale  
    boolean enableLogging  
    boolean enableSampling  
    boolean enableTransmit  
    Config.GyroFilterBandwith filterBandwidth
    Deprecated.
     
    boolean fullScale
    Deprecated.
     
    long mod  
    int offsetX  
    int offsetY  
    int offsetZ  
    int rateDivider
    Deprecated.
     
    double scaleX  
    double scaleY  
    double scaleZ  
  • Constructor Summary

    Constructors 
    Constructor Description
    DigitalGyroConfig()
    Deprecated.
    default constructor, setting the Mask
  • Method Summary

    Modifier and Type Method Description
    int getBytes​(byte[] out)
    Deprecated.
    encode current configuration in a byte array
    Config.Mask getMask()
    get mask
    double getRangeFactor()
    Deprecated.
    get the value to multiply raw values with to get angular velocity in degrees/s
    int parse​(byte[] in)
    Deprecated.
    pare input byte array to relevant configuration and return length of encoded config
    void set​(int _rateDivider, Config.GyroFilterBandwith _filterBandwidth, boolean _fullScale)
    Deprecated.
    set hardware rate divider filter bandwidth and gyro scale
    void setCustomRangeFactor​(double[] factors)
    Deprecated.
     
    void setMod​(long _mod)
    set modulus for sampling (i.e.
    void setOffset​(int _offsetX, int _offsetY, int _offsetZ)
    set offset in all directions
    void setSampling​(boolean _enableSampling, boolean _enableTransmit, boolean _enableLogging)
    set sampling related booleans
    void setScale​(double _scaleX, double _scaleY, double _scaleZ)
    set scale in all directions
    java.lang.String toString()
    Deprecated.
    create a string representation of the configuration

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • DigitalGyroConfig

      public DigitalGyroConfig()
      Deprecated.
      default constructor, setting the Mask
  • Method Details

    • set

      public void set​(int _rateDivider, Config.GyroFilterBandwith _filterBandwidth, boolean _fullScale)
      Deprecated.
      set hardware rate divider filter bandwidth and gyro scale
      Parameters:
      _rateDivider - the rate divider
      _filterBandwidth - the filter bandwidth
      _fullScale - fullscale or not?
    • parse

      public int parse​(byte[] in) throws InertiaException
      Deprecated.
      Description copied from interface: Config.AbstractConfig
      pare input byte array to relevant configuration and return length of encoded config
      Specified by:
      parse in interface Config.AbstractConfig
      Parameters:
      in - input byte array
      Returns:
      length of encoded config
      Throws:
      InertiaException - upon error such as when length is insufficient
    • getBytes

      public int getBytes​(byte[] out)
      Deprecated.
      Description copied from interface: Config.AbstractConfig
      encode current configuration in a byte array
      Specified by:
      getBytes in interface Config.AbstractConfig
      Parameters:
      out - byte array for encoded configuration
      Returns:
      length of encoded configuration
    • toString

      public java.lang.String toString()
      Deprecated.
      Description copied from interface: Config.AbstractConfig
      create a string representation of the configuration
      Specified by:
      toString in interface Config.AbstractConfig
      Returns:
      string representation of configuration
    • getRangeFactor

      public double getRangeFactor()
      Deprecated.
      get the value to multiply raw values with to get angular velocity in degrees/s
      Returns:
      range factor
    • setCustomRangeFactor

      public void setCustomRangeFactor​(double[] factors)
      Deprecated.
    • setScale

      public void setScale​(double _scaleX, double _scaleY, double _scaleZ)
      set scale in all directions
      Parameters:
      _scaleX - the scale factor to apply for X
      _scaleY - the scale factor to apply for Y
      _scaleZ - the scale factor to apply for Z
    • setOffset

      public void setOffset​(int _offsetX, int _offsetY, int _offsetZ)
      set offset in all directions
      Parameters:
      _offsetX - the offset to apply for X
      _offsetY - the offset to apply for Y
      _offsetZ - the offset to apply for Z
    • setSampling

      public void setSampling​(boolean _enableSampling, boolean _enableTransmit, boolean _enableLogging)
      set sampling related booleans
      Parameters:
      _enableSampling - enable sampling?
      _enableTransmit - enable transmission?
      _enableLogging - enable logging?
    • setMod

      public void setMod​(long _mod)
      set modulus for sampling (i.e. divider of global sampling frequency)
      Parameters:
      _mod - the modulus
    • getMask

      public Config.Mask getMask()
      Description copied from interface: Config.AbstractConfig
      get mask
      Specified by:
      getMask in interface Config.AbstractConfig
      Returns:
      mask for this config