|
| WPI_PigeonIMU (int deviceNumber) |
| Construtor for WPI_PigeonIMU.
|
|
| WPI_PigeonIMU (ctre::phoenix::motorcontrol::can::TalonSRX &talon) |
| Construtor for WPI_PigeonIMU.
|
|
| ~WPI_PigeonIMU () |
|
| WPI_PigeonIMU ()=delete |
|
| WPI_PigeonIMU (WPI_PigeonIMU const &)=delete |
|
WPI_PigeonIMU & | operator= (WPI_PigeonIMU const &)=delete |
|
void | InitSendable (wpi::SendableBuilder &builder) override |
|
void | Reset () |
| Resets the Pigeon IMU to a heading of zero.
|
|
double | GetAngle () const |
| Returns the heading of the robot in degrees.
|
|
double | GetRate () const |
| Returns the rate of rotation of the Pigeon IMU.
|
|
frc::Rotation2d | GetRotation2d () const |
| Returns the heading of the robot as a frc#Rotation2d.
|
|
| PigeonIMU (int deviceNumber) |
| Create a Pigeon object that communicates with Pigeon on CAN Bus.
|
|
| PigeonIMU (ctre::phoenix::motorcontrol::can::TalonSRX *talonSrx) |
| Create a Pigeon object that communciates with Pigeon through the Gadgeteer ribbon cable connected to a Talon on CAN Bus.
|
|
| PigeonIMU (ctre::phoenix::motorcontrol::can::TalonSRX &talonSrx) |
| Create a Pigeon object that communciates with Pigeon through the Gadgeteer ribbon cable connected to a Talon on CAN Bus.
|
|
int | SetFusedHeading (double angleDeg, int timeoutMs=0) |
| Sets the Fused Heading to the specified value.
|
|
int | AddFusedHeading (double angleDeg, int timeoutMs=0) |
| Atomically add to the Fused Heading register.
|
|
int | SetFusedHeadingToCompass (int timeoutMs=0) |
| Sets the Fused Heading register to match the current compass value.
|
|
int | SetTemperatureCompensationDisable (bool bTempCompDisable, int timeoutMs=0) |
| Disable/Enable Temp compensation.
|
|
int | SetCompassDeclination (double angleDegOffset, int timeoutMs=0) |
| Set the declination for compass.
|
|
int | SetCompassAngle (double angleDeg, int timeoutMs=0) |
| Sets the compass angle.
|
|
int | EnterCalibrationMode (CalibrationMode calMode, int timeoutMs=0) |
| Enters the Calbration mode.
|
|
int | GetGeneralStatus (PigeonIMU::GeneralStatus &statusToFill) |
| Get the status of the current (or previousley complete) calibration.
|
|
PigeonState | GetState () |
| Gets the current Pigeon state.
|
|
int | GetAccelerometerAngles (double tiltAngles[3]) |
| Get Accelerometer tilt angles.
|
|
double | GetFusedHeading (FusionStatus &status) |
| Get the current Fusion Status (including fused heading)
|
|
double | GetFusedHeading () const |
| Gets the Fused Heading.
|
|
uint32_t | GetResetCount () |
|
uint32_t | GetResetFlags () |
|
ErrorCode | ConfigSetCustomParam (int newValue, int paramIndex, int timeoutMs=0) |
| Sets the value of a custom parameter.
|
|
int | ConfigGetCustomParam (int paramIndex, int timeoutMs=0) |
| Gets the value of a custom parameter.
|
|
ErrorCode | SetStatusFramePeriod (PigeonIMU_StatusFrame statusFrame, uint8_t periodMs, int timeoutMs=0) |
| Sets the period of the given status frame.
|
|
int | GetStatusFramePeriod (PigeonIMU_StatusFrame frame, int timeoutMs=0) |
| Gets the period of the given status frame.
|
|
ErrorCode | SetControlFramePeriod (PigeonIMU_ControlFrame frame, int periodMs) |
| Sets the period of the given control frame.
|
|
int | GetFirmwareVersion () |
| Gets the firmware version of the device.
|
|
ErrorCode | GetFaults (PigeonIMU_Faults &toFill) |
| Gets the fault status.
|
|
ErrorCode | GetStickyFaults (PigeonIMU_StickyFaults &toFill) |
| Gets the sticky fault status.
|
|
ErrorCode | ClearStickyFaults (int timeoutMs=0) |
| Clears the Sticky Faults.
|
|
virtual ctre::phoenix::ErrorCode | ConfigAllSettings (const PigeonIMUConfiguration &allConfigs, int timeoutMs=50) |
| Configures all persistent settings.
|
|
virtual void | GetAllConfigs (PigeonIMUConfiguration &allConfigs, int timeoutMs=50) |
| Gets all persistant settings.
|
|
virtual ErrorCode | ConfigFactoryDefault (int timeoutMs=50) |
| Configures all persistent settings to defaults.
|
|
| BasePigeon (int deviceNumber, std::string const &version, std::string const &canbus="") |
| Create a Pigeon object that communicates with Pigeon on CAN Bus.
|
|
| ~BasePigeon () |
|
int | SetYaw (double angleDeg, int timeoutMs=0) |
| Sets the Yaw register to the specified value.
|
|
int | AddYaw (double angleDeg, int timeoutMs=0) |
| Atomically add to the Yaw register.
|
|
int | SetYawToCompass (int timeoutMs=0) |
| Sets the Yaw register to match the current compass value.
|
|
int | SetAccumZAngle (double angleDeg, int timeoutMs=0) |
| Sets the AccumZAngle.
|
|
ErrorCode | GetLastError () const |
| Call GetLastError() generated by this object.
|
|
ErrorCode | Get6dQuaternion (double wxyz[4]) const |
| Get 6d Quaternion data.
|
|
ErrorCode | GetYawPitchRoll (double ypr[3]) const |
| Get Yaw, Pitch, and Roll data.
|
|
double | GetYaw () const |
| Get the yaw from the Pigeon.
|
|
double | GetPitch () const |
| Get the pitch from the Pigeon.
|
|
double | GetRoll () const |
| Get the roll from the Pigeon.
|
|
int | GetAccumGyro (double xyz_deg[3]) const |
| Get AccumGyro data.
|
|
double | GetAbsoluteCompassHeading () const |
| Get the absolute compass heading.
|
|
double | GetCompassHeading () const |
| Get the continuous compass heading.
|
|
double | GetCompassFieldStrength () const |
| Gets the compass' measured magnetic field strength.
|
|
double | GetTemp () const |
| Gets the temperature of the pigeon.
|
|
uint32_t | GetUpTime () const |
| Gets the current Pigeon uptime.
|
|
int | GetRawMagnetometer (int16_t rm_xyz[3]) const |
| Get Raw Magnetometer data.
|
|
int | GetBiasedMagnetometer (int16_t bm_xyz[3]) const |
| Get Biased Magnetometer data.
|
|
int | GetBiasedAccelerometer (int16_t ba_xyz[3]) const |
| Get Biased Accelerometer data.
|
|
int | GetRawGyro (double xyz_dps[3]) const |
| Get Raw Gyro data.
|
|
uint32_t | GetResetCount () const |
|
uint32_t | GetResetFlags () const |
|
uint32_t | GetFirmVers () const |
|
bool | HasResetOccurred () const |
|
ErrorCode | ConfigSetCustomParam (int newValue, int paramIndex, int timeoutMs=0) |
| Sets the value of a custom parameter.
|
|
int | ConfigGetCustomParam (int paramIndex, int timeoutMs=0) |
| Gets the value of a custom parameter.
|
|
ErrorCode | ConfigSetParameter (ParamEnum param, double value, uint8_t subValue, int ordinal, int timeoutMs=0) |
| Sets a parameter.
|
|
double | ConfigGetParameter (ctre::phoenix::ParamEnum param, int ordinal, int timeoutMs=0) |
| Gets a parameter.
|
|
ErrorCode | ConfigGetParameter (ParamEnum param, int32_t valueToSend, int32_t &valueReceived, uint8_t &subValue, int32_t ordinal, int32_t timeoutMs) |
| Gets a parameter by passing an int by reference.
|
|
ErrorCode | SetStatusFramePeriod (PigeonIMU_StatusFrame statusFrame, uint8_t periodMs, int timeoutMs=0) |
| Sets the period of the given status frame.
|
|
int | GetStatusFramePeriod (PigeonIMU_StatusFrame frame, int timeoutMs=0) |
| Gets the period of the given status frame.
|
|
ErrorCode | SetControlFramePeriod (PigeonIMU_ControlFrame frame, int periodMs) |
| Sets the period of the given control frame.
|
|
int | GetFirmwareVersion () |
| Gets the firmware version of the device.
|
|
ErrorCode | ClearStickyFaults (int timeoutMs=0) |
| Clears the Sticky Faults.
|
|
void * | GetLowLevelHandle () const |
|
virtual ctre::phoenix::ErrorCode | ConfigAllSettings (const BasePigeonConfiguration &allConfigs, int timeoutMs=50) |
| Configures all persistent settings.
|
|
virtual void | GetAllConfigs (BasePigeonConfiguration &allConfigs, int timeoutMs=50) |
| Gets all persistant settings.
|
|
virtual BasePigeonSimCollection & | GetSimCollection () |
|
| CANBusAddressable (int deviceNumber) |
| Constructor for a CANBusAddressable device.
|
|
int | GetDeviceNumber () |
|