CTRE Phoenix Pro C++ 23.0.12
ctre::phoenixpro::configs::Pigeon2Configurator Class Reference

Class description for the Pigeon 2 IMU sensor that measures orientation. More...

#include <ctre/phoenixpro/core/CorePigeon2.hpp>

Inheritance diagram for ctre::phoenixpro::configs::Pigeon2Configurator:
ctre::phoenixpro::configs::ParentConfigurator

Public Member Functions

 Pigeon2Configurator (const Pigeon2Configurator &)=delete
 Delete the copy constructor, we can only pass by reference. More...
 
ctre::phoenix::StatusCode Refresh (Pigeon2Configuration &configs) const
 Refreshes the values of the specified config group. More...
 
ctre::phoenix::StatusCode Refresh (Pigeon2Configuration &configs, units::time::second_t timeoutSeconds) const
 Refreshes the values of the specified config group. More...
 
ctre::phoenix::StatusCode Apply (const Pigeon2Configuration &configs)
 Applies the contents of the specified config to the device. More...
 
ctre::phoenix::StatusCode Apply (const Pigeon2Configuration &configs, units::time::second_t timeoutSeconds)
 Applies the contents of the specified config to the device. More...
 
ctre::phoenix::StatusCode Refresh (MountPoseConfigs &configs) const
 Refreshes the values of the specified config group. More...
 
ctre::phoenix::StatusCode Refresh (MountPoseConfigs &configs, units::time::second_t timeoutSeconds) const
 Refreshes the values of the specified config group. More...
 
ctre::phoenix::StatusCode Apply (const MountPoseConfigs &configs)
 Applies the contents of the specified config to the device. More...
 
ctre::phoenix::StatusCode Apply (const MountPoseConfigs &configs, units::time::second_t timeoutSeconds)
 Applies the contents of the specified config to the device. More...
 
ctre::phoenix::StatusCode Refresh (GyroTrimConfigs &configs) const
 Refreshes the values of the specified config group. More...
 
ctre::phoenix::StatusCode Refresh (GyroTrimConfigs &configs, units::time::second_t timeoutSeconds) const
 Refreshes the values of the specified config group. More...
 
ctre::phoenix::StatusCode Apply (const GyroTrimConfigs &configs)
 Applies the contents of the specified config to the device. More...
 
ctre::phoenix::StatusCode Apply (const GyroTrimConfigs &configs, units::time::second_t timeoutSeconds)
 Applies the contents of the specified config to the device. More...
 
ctre::phoenix::StatusCode Refresh (Pigeon2FeaturesConfigs &configs) const
 Refreshes the values of the specified config group. More...
 
ctre::phoenix::StatusCode Refresh (Pigeon2FeaturesConfigs &configs, units::time::second_t timeoutSeconds) const
 Refreshes the values of the specified config group. More...
 
ctre::phoenix::StatusCode Apply (const Pigeon2FeaturesConfigs &configs)
 Applies the contents of the specified config to the device. More...
 
ctre::phoenix::StatusCode Apply (const Pigeon2FeaturesConfigs &configs, units::time::second_t timeoutSeconds)
 Applies the contents of the specified config to the device. More...
 
ctre::phoenix::StatusCode SetYaw (units::angle::degree_t newValue)
 The yaw to set the Pigeon2 to right now. More...
 
ctre::phoenix::StatusCode SetYaw (units::angle::degree_t newValue, units::time::second_t timeoutSeconds)
 The yaw to set the Pigeon2 to right now. More...
 
ctre::phoenix::StatusCode ClearStickyFaults ()
 Clear the sticky faults in the device. More...
 
ctre::phoenix::StatusCode ClearStickyFaults (units::time::second_t timeoutSeconds)
 Clear the sticky faults in the device. More...
 

Additional Inherited Members

- Public Attributes inherited from ctre::phoenixpro::configs::ParentConfigurator
units::time::second_t defaultTimeoutSeconds {0.050_s}
 The default amount of time to wait for a config. More...
 
- Protected Member Functions inherited from ctre::phoenixpro::configs::ParentConfigurator
 ParentConfigurator (hardware::DeviceIdentifier deviceIdentifier)
 
ctre::phoenix::StatusCode SetConfigsPrivate (const std::string &serializedString, units::time::second_t timeoutSeconds, bool futureProofConfigs, bool overrideIfDuplicate)
 
ctre::phoenix::StatusCode GetConfigsPrivate (std::string &serializedString, units::time::second_t timeoutSeconds) const
 

Detailed Description

Class description for the Pigeon 2 IMU sensor that measures orientation.

This handles the configurations for the hardware::Pigeon2

Constructor & Destructor Documentation

◆ Pigeon2Configurator()

ctre::phoenixpro::configs::Pigeon2Configurator::Pigeon2Configurator ( const Pigeon2Configurator )
delete

Delete the copy constructor, we can only pass by reference.

Member Function Documentation

◆ Apply() [1/8]

ctre::phoenix::StatusCode ctre::phoenixpro::configs::Pigeon2Configurator::Apply ( const GyroTrimConfigs configs)
inline

Applies the contents of the specified config to the device.

This will wait up to defaultTimeoutSeconds.

Call to apply the selected configs.

Parameters
configsConfigs to apply against.
Returns
StatusCode of the set command

◆ Apply() [2/8]

ctre::phoenix::StatusCode ctre::phoenixpro::configs::Pigeon2Configurator::Apply ( const GyroTrimConfigs configs,
units::time::second_t  timeoutSeconds 
)
inline

Applies the contents of the specified config to the device.

Call to apply the selected configs.

Parameters
configsConfigs to apply against.
timeoutSecondsMaximum amount of time to wait when performing configuration
Returns
StatusCode of the set command

◆ Apply() [3/8]

ctre::phoenix::StatusCode ctre::phoenixpro::configs::Pigeon2Configurator::Apply ( const MountPoseConfigs configs)
inline

Applies the contents of the specified config to the device.

This will wait up to defaultTimeoutSeconds.

Call to apply the selected configs.

Parameters
configsConfigs to apply against.
Returns
StatusCode of the set command

◆ Apply() [4/8]

ctre::phoenix::StatusCode ctre::phoenixpro::configs::Pigeon2Configurator::Apply ( const MountPoseConfigs configs,
units::time::second_t  timeoutSeconds 
)
inline

Applies the contents of the specified config to the device.

Call to apply the selected configs.

Parameters
configsConfigs to apply against.
timeoutSecondsMaximum amount of time to wait when performing configuration
Returns
StatusCode of the set command

◆ Apply() [5/8]

ctre::phoenix::StatusCode ctre::phoenixpro::configs::Pigeon2Configurator::Apply ( const Pigeon2Configuration configs)
inline

Applies the contents of the specified config to the device.

This will wait up to defaultTimeoutSeconds.

Call to apply the selected configs.

Parameters
configsConfigs to apply against.
Returns
StatusCode of the set command

◆ Apply() [6/8]

ctre::phoenix::StatusCode ctre::phoenixpro::configs::Pigeon2Configurator::Apply ( const Pigeon2Configuration configs,
units::time::second_t  timeoutSeconds 
)
inline

Applies the contents of the specified config to the device.

Call to apply the selected configs.

Parameters
configsConfigs to apply against.
timeoutSecondsMaximum amount of time to wait when performing configuration
Returns
StatusCode of the set command

◆ Apply() [7/8]

ctre::phoenix::StatusCode ctre::phoenixpro::configs::Pigeon2Configurator::Apply ( const Pigeon2FeaturesConfigs configs)
inline

Applies the contents of the specified config to the device.

This will wait up to defaultTimeoutSeconds.

Call to apply the selected configs.

Parameters
configsConfigs to apply against.
Returns
StatusCode of the set command

◆ Apply() [8/8]

ctre::phoenix::StatusCode ctre::phoenixpro::configs::Pigeon2Configurator::Apply ( const Pigeon2FeaturesConfigs configs,
units::time::second_t  timeoutSeconds 
)
inline

Applies the contents of the specified config to the device.

Call to apply the selected configs.

Parameters
configsConfigs to apply against.
timeoutSecondsMaximum amount of time to wait when performing configuration
Returns
StatusCode of the set command

◆ ClearStickyFaults() [1/2]

ctre::phoenix::StatusCode ctre::phoenixpro::configs::Pigeon2Configurator::ClearStickyFaults ( )
inline

Clear the sticky faults in the device.

This typically has no impact on the device functionality. Instead, it just clears telemetry faults that are accessible via API and Tuner Self-Test.

This will wait up to defaultTimeoutSeconds.

This is available in the configurator in case the user wants to initialize their device entirely without passing a device reference down to the code that performs the initialization. In this case, the user passes down the configurator object and performs all the initialization code on the object.

Returns
StatusCode of the set command

◆ ClearStickyFaults() [2/2]

ctre::phoenix::StatusCode ctre::phoenixpro::configs::Pigeon2Configurator::ClearStickyFaults ( units::time::second_t  timeoutSeconds)
inline

Clear the sticky faults in the device.

This typically has no impact on the device functionality. Instead, it just clears telemetry faults that are accessible via API and Tuner Self-Test.

This is available in the configurator in case the user wants to initialize their device entirely without passing a device reference down to the code that performs the initialization. In this case, the user passes down the configurator object and performs all the initialization code on the object.

Parameters
timeoutSecondsMaximum time to wait up to in seconds.
Returns
StatusCode of the set command

◆ Refresh() [1/8]

ctre::phoenix::StatusCode ctre::phoenixpro::configs::Pigeon2Configurator::Refresh ( GyroTrimConfigs configs) const
inline

Refreshes the values of the specified config group.

This will wait up to defaultTimeoutSeconds.

Call to refresh the selected configs from the device.

Parameters
configsThe configs to refresh
Returns
StatusCode of refreshing the configs

◆ Refresh() [2/8]

ctre::phoenix::StatusCode ctre::phoenixpro::configs::Pigeon2Configurator::Refresh ( GyroTrimConfigs configs,
units::time::second_t  timeoutSeconds 
) const
inline

Refreshes the values of the specified config group.

Call to refresh the selected configs from the device.

Parameters
configsThe configs to refresh
timeoutSecondsMaximum amount of time to wait when performing configuration
Returns
StatusCode of refreshing the configs

◆ Refresh() [3/8]

ctre::phoenix::StatusCode ctre::phoenixpro::configs::Pigeon2Configurator::Refresh ( MountPoseConfigs configs) const
inline

Refreshes the values of the specified config group.

This will wait up to defaultTimeoutSeconds.

Call to refresh the selected configs from the device.

Parameters
configsThe configs to refresh
Returns
StatusCode of refreshing the configs

◆ Refresh() [4/8]

ctre::phoenix::StatusCode ctre::phoenixpro::configs::Pigeon2Configurator::Refresh ( MountPoseConfigs configs,
units::time::second_t  timeoutSeconds 
) const
inline

Refreshes the values of the specified config group.

Call to refresh the selected configs from the device.

Parameters
configsThe configs to refresh
timeoutSecondsMaximum amount of time to wait when performing configuration
Returns
StatusCode of refreshing the configs

◆ Refresh() [5/8]

ctre::phoenix::StatusCode ctre::phoenixpro::configs::Pigeon2Configurator::Refresh ( Pigeon2Configuration configs) const
inline

Refreshes the values of the specified config group.

This will wait up to defaultTimeoutSeconds.

Call to refresh the selected configs from the device.

Parameters
configsThe configs to refresh
Returns
StatusCode of refreshing the configs

◆ Refresh() [6/8]

ctre::phoenix::StatusCode ctre::phoenixpro::configs::Pigeon2Configurator::Refresh ( Pigeon2Configuration configs,
units::time::second_t  timeoutSeconds 
) const
inline

Refreshes the values of the specified config group.

Call to refresh the selected configs from the device.

Parameters
configsThe configs to refresh
timeoutSecondsMaximum amount of time to wait when performing configuration
Returns
StatusCode of refreshing the configs

◆ Refresh() [7/8]

ctre::phoenix::StatusCode ctre::phoenixpro::configs::Pigeon2Configurator::Refresh ( Pigeon2FeaturesConfigs configs) const
inline

Refreshes the values of the specified config group.

This will wait up to defaultTimeoutSeconds.

Call to refresh the selected configs from the device.

Parameters
configsThe configs to refresh
Returns
StatusCode of refreshing the configs

◆ Refresh() [8/8]

ctre::phoenix::StatusCode ctre::phoenixpro::configs::Pigeon2Configurator::Refresh ( Pigeon2FeaturesConfigs configs,
units::time::second_t  timeoutSeconds 
) const
inline

Refreshes the values of the specified config group.

Call to refresh the selected configs from the device.

Parameters
configsThe configs to refresh
timeoutSecondsMaximum amount of time to wait when performing configuration
Returns
StatusCode of refreshing the configs

◆ SetYaw() [1/2]

ctre::phoenix::StatusCode ctre::phoenixpro::configs::Pigeon2Configurator::SetYaw ( units::angle::degree_t  newValue)
inline

The yaw to set the Pigeon2 to right now.

This will wait up to defaultTimeoutSeconds.

This is available in the configurator in case the user wants to initialize their device entirely without passing a device reference down to the code that performs the initialization. In this case, the user passes down the configurator object and performs all the initialization code on the object.

Parameters
newValueValue to set to.
Returns
StatusCode of the set command

◆ SetYaw() [2/2]

ctre::phoenix::StatusCode ctre::phoenixpro::configs::Pigeon2Configurator::SetYaw ( units::angle::degree_t  newValue,
units::time::second_t  timeoutSeconds 
)
inline

The yaw to set the Pigeon2 to right now.

This is available in the configurator in case the user wants to initialize their device entirely without passing a device reference down to the code that performs the initialization. In this case, the user passes down the configurator object and performs all the initialization code on the object.

Parameters
newValueValue to set to.
timeoutSecondsMaximum time to wait up to in seconds.
Returns
StatusCode of the set command

The documentation for this class was generated from the following file: