public class NavxMicroNavigationSensor
extends <any>
NavxMicroNavigationSensor
provides support for the Kauai Labs navX-Micro Robotics
Navigation Sensor. This sensor contains an Invensense MPU-9250 integrated circuit.Modifier and Type | Class and Description |
---|---|
static class |
NavxMicroNavigationSensor.CalibrationStatus |
static class |
NavxMicroNavigationSensor.IntegrationControl |
static class |
NavxMicroNavigationSensor.OpStatus |
static class |
NavxMicroNavigationSensor.Parameters |
static class |
NavxMicroNavigationSensor.Register |
static class |
NavxMicroNavigationSensor.SelfTestStatus |
static class |
NavxMicroNavigationSensor.SensorStatus |
Modifier and Type | Field and Description |
---|---|
static I2cAddr |
ADDRESS_I2C_DEFAULT |
protected float |
gyroScaleFactor |
protected static I2cDeviceSynch.ReadWindow |
lowerWindow |
int |
NAVX_WRITE_COMMAND_BIT |
protected static I2cDeviceSynch.ReadMode |
readMode |
protected static I2cDeviceSynch.ReadWindow |
upperWindow |
Constructor and Description |
---|
NavxMicroNavigationSensor(I2cDeviceSynch deviceClient) |
Modifier and Type | Method and Description |
---|---|
protected void |
ensureReadWindow(I2cDeviceSynch.ReadWindow needed) |
Orientation |
getAngularOrientation(AxesReference reference,
AxesOrder order,
org.firstinspires.ftc.robotcore.external.navigation.AngleUnit angleUnit) |
java.util.Set<Axis> |
getAngularOrientationAxes() |
AngularVelocity |
getAngularVelocity(AngleUnit unit) |
java.util.Set<Axis> |
getAngularVelocityAxes() |
java.lang.String |
getDeviceName() |
RobotUsbDevice.FirmwareVersion |
getFirmwareVersion() |
I2cAddr |
getI2cAddress() |
Manufacturer |
getManufacturer() |
protected boolean |
internalInitialize(NavxMicroNavigationSensor.Parameters parameters) |
boolean |
isCalibrating()
Returns true if the sensor is currently performing automatic gyro/accelerometer calibration.
|
protected static I2cDeviceSynch.ReadWindow |
newWindow(NavxMicroNavigationSensor.Register regFirst,
NavxMicroNavigationSensor.Register regMax) |
byte |
read8(NavxMicroNavigationSensor.Register reg) |
short |
readShort(NavxMicroNavigationSensor.Register reg) |
float |
readSignedHundredthsFloat(NavxMicroNavigationSensor.Register reg) |
TimestampedData |
readTimeStamped(NavxMicroNavigationSensor.Register reg,
int creg) |
void |
setI2cAddress(I2cAddr newAddress) |
protected void |
setReadWindow() |
protected float |
shortToSignedHundredths(short value) |
void |
write8(NavxMicroNavigationSensor.Register reg,
byte value) |
void |
writeShort(NavxMicroNavigationSensor.Register reg,
short value) |
public final int NAVX_WRITE_COMMAND_BIT
protected static final I2cDeviceSynch.ReadMode readMode
protected static final I2cDeviceSynch.ReadWindow lowerWindow
protected static final I2cDeviceSynch.ReadWindow upperWindow
protected float gyroScaleFactor
public static final I2cAddr ADDRESS_I2C_DEFAULT
public NavxMicroNavigationSensor(I2cDeviceSynch deviceClient)
protected static I2cDeviceSynch.ReadWindow newWindow(NavxMicroNavigationSensor.Register regFirst, NavxMicroNavigationSensor.Register regMax)
protected void setReadWindow()
protected boolean internalInitialize(NavxMicroNavigationSensor.Parameters parameters)
public Manufacturer getManufacturer()
public java.lang.String getDeviceName()
public RobotUsbDevice.FirmwareVersion getFirmwareVersion()
protected void ensureReadWindow(I2cDeviceSynch.ReadWindow needed)
public TimestampedData readTimeStamped(NavxMicroNavigationSensor.Register reg, int creg)
public byte read8(NavxMicroNavigationSensor.Register reg)
public short readShort(NavxMicroNavigationSensor.Register reg)
public float readSignedHundredthsFloat(NavxMicroNavigationSensor.Register reg)
protected float shortToSignedHundredths(short value)
public void write8(NavxMicroNavigationSensor.Register reg, byte value)
public void writeShort(NavxMicroNavigationSensor.Register reg, short value)
public boolean isCalibrating()
NOTE: During this automatic calibration, the angular orientation data may not be accurate.
public java.util.Set<Axis> getAngularVelocityAxes()
public java.util.Set<Axis> getAngularOrientationAxes()
public Orientation getAngularOrientation(AxesReference reference, AxesOrder order, org.firstinspires.ftc.robotcore.external.navigation.AngleUnit angleUnit)
public AngularVelocity getAngularVelocity(AngleUnit unit)
public void setI2cAddress(I2cAddr newAddress)
public I2cAddr getI2cAddress()