Package com.ctre.phoenix.sensors
Class PigeonImuJNI
java.lang.Object
com.ctre.phoenix.CTREJNIWrapper
com.ctre.phoenix.sensors.PigeonImuJNI
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
JNI_AddFusedHeading
(long handle, double angleDeg, int timeoutMs) static int
JNI_AddYaw
(long handle, double angleDeg, int timeoutMs) static int
JNI_ClearStickyFaults
(long handle, int timeoutMs) static int
JNI_ConfigFactoryDefault
(long handle, int timeoutMs) static int
JNI_ConfigGetCustomParam
(long handle, int paramIndex, int timoutMs) static double
JNI_ConfigGetParameter
(long handle, int param, int ordinal, int timeoutMs) static int
JNI_ConfigSetCustomParam
(long handle, int newValue, int paramIndex, int timeoutMs) static int
JNI_ConfigSetParameter
(long handle, int param, double value, int subValue, int ordinal, int timeoutMs) static int
JNI_destroy_PigeonImu
(long handle) static int
JNI_EnterCalibrationMode
(long handle, int calMode, int timeoutMs) static int
JNI_Get6dQuaternion
(long handle, double[] wxyz) static double
JNI_GetAbsoluteCompassHeading
(long handle) static int
JNI_GetAccelerometerAngles
(long handle, double[] tiltAngles) static int
JNI_GetAccumGyro
(long handle, double[] xyz_deg) static int
JNI_GetBiasedAccelerometer
(long handle, short[] ba_xyz) static int
JNI_GetBiasedMagnetometer
(long handle, short[] bm_xyz) static double
JNI_GetCompassFieldStrength
(long handle) static double
JNI_GetCompassHeading
(long handle) static int
JNI_GetFaults
(long handle) static int
JNI_GetFirmwareVersion
(long handle) static int
JNI_GetFusedHeading
(long handle, double[] params) static int
JNI_GetGeneralStatus
(long handle, double[] params) static int
JNI_GetGravityVector
(long handle, double[] gravityVector) static int
JNI_GetLastError
(long handle) static double
JNI_GetLastTimestamp
(long handle) static double
JNI_GetPitch
(long handle) static int
JNI_GetRawGyro
(long handle, double[] xyz_dps) static int
JNI_GetRawMagnetometer
(long handle, short[] rm_xyz) static int
JNI_GetResetCount
(long handle) static int
JNI_GetResetFlags
(long handle) static double
JNI_GetRoll
(long handle) static int
JNI_GetState
(long handle) static int
JNI_GetStatusFramePeriod
(long handle, int frame, int timeoutMs) static int
JNI_GetStickyFaults
(long handle) static double
JNI_GetTemp
(long handle) static int
JNI_GetUpTime
(long handle) static double
JNI_GetYaw
(long handle) static int
JNI_GetYawPitchRoll
(long handle, double[] ypr) static int
JNI_GetYawPitchRoll2
(long handle, double[] ypr) static boolean
JNI_HasResetOccurred
(long handle) static long
JNI_new_PigeonImu
(int deviceNumber, String version, String canbus) static long
JNI_new_PigeonImu_Talon
(int talonID, String version) static int
JNI_SetAccumZAngle
(long handle, double angleDeg, int timeoutMs) static int
JNI_SetCompassAngle
(long handle, double angleDeg, int timeoutMs) static int
JNI_SetCompassDeclination
(long handle, double angleDegOffset, int timeoutMs) static int
JNI_SetControlFramePeriod
(long handle, int frame, int periodMs) static int
JNI_SetFusedHeading
(long handle, double angleDeg, int timeoutMs) static int
JNI_SetFusedHeadingToCompass
(long handle, int timeoutMs) static int
JNI_SetStatusFramePeriod
(long handle, int statusFrame, int periodMs, int timeoutMs) static int
JNI_SetTemperatureCompensationDisable
(long handle, int bTempCompDisable, int timeoutMs) static int
JNI_SetYaw
(long handle, double angleDeg, int timeoutMs) static int
JNI_SetYawToCompass
(long handle, int timeoutMs)
-
Constructor Details
-
PigeonImuJNI
public PigeonImuJNI()
-
-
Method Details
-
JNI_new_PigeonImu_Talon
-
JNI_new_PigeonImu
-
JNI_destroy_PigeonImu
-
JNI_ConfigSetCustomParam
public static int JNI_ConfigSetCustomParam(long handle, int newValue, int paramIndex, int timeoutMs) -
JNI_ConfigGetCustomParam
-
JNI_ConfigSetParameter
public static int JNI_ConfigSetParameter(long handle, int param, double value, int subValue, int ordinal, int timeoutMs) -
JNI_ConfigGetParameter
-
JNI_ConfigFactoryDefault
-
JNI_SetStatusFramePeriod
public static int JNI_SetStatusFramePeriod(long handle, int statusFrame, int periodMs, int timeoutMs) -
JNI_SetYaw
-
JNI_AddYaw
-
JNI_SetYawToCompass
-
JNI_SetFusedHeading
-
JNI_AddFusedHeading
-
JNI_SetFusedHeadingToCompass
-
JNI_SetAccumZAngle
-
JNI_SetTemperatureCompensationDisable
public static int JNI_SetTemperatureCompensationDisable(long handle, int bTempCompDisable, int timeoutMs) -
JNI_SetCompassDeclination
-
JNI_SetCompassAngle
-
JNI_EnterCalibrationMode
-
JNI_GetGeneralStatus
-
JNI_Get6dQuaternion
-
JNI_GetYawPitchRoll
-
JNI_GetYawPitchRoll2
-
JNI_GetYaw
-
JNI_GetPitch
-
JNI_GetRoll
-
JNI_GetGravityVector
-
JNI_GetAccumGyro
-
JNI_GetAbsoluteCompassHeading
-
JNI_GetCompassHeading
-
JNI_GetCompassFieldStrength
-
JNI_GetTemp
-
JNI_GetUpTime
-
JNI_GetRawMagnetometer
-
JNI_GetBiasedMagnetometer
-
JNI_GetBiasedAccelerometer
-
JNI_GetRawGyro
-
JNI_GetAccelerometerAngles
-
JNI_GetFusedHeading
-
JNI_GetState
-
JNI_GetResetCount
-
JNI_GetResetFlags
-
JNI_GetFirmwareVersion
-
JNI_GetLastError
-
JNI_GetLastTimestamp
-
JNI_HasResetOccurred
-
JNI_GetStatusFramePeriod
-
JNI_SetControlFramePeriod
-
JNI_GetFaults
-
JNI_GetStickyFaults
-
JNI_ClearStickyFaults
-