2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
|
Classes | |
struct | has_direction |
struct | has_direction< T, decltype((void) T::direction, void())> |
struct | has_initMode |
struct | has_initMode< T, decltype((void) T::initMode, void())> |
struct | has_magOffset |
struct | has_magOffset< T, decltype((void) T::magOffset, void())> |
struct | has_range |
struct | has_range< T, decltype((void) T::range, void())> |
Functions | |
template<typename T > | |
bool | CanCoderConfig (CANCoder &encoder, units::millisecond_t configTimeout) |
Configures a CTRE CanCoder with only the fields provided. All other fields are given the factory default values. | |
template<typename CompetitionConfig , typename PracticeConfig > | |
bool | CanCoderConfig (CANCoder &encoder, units::millisecond_t configTimeout, argos_lib::RobotInstance instance) |
Configures a CTRE CanCoder with configuration values according to specified robot instance. | |
bool argos_lib::cancoder_config::CanCoderConfig | ( | CANCoder & | encoder, |
units::millisecond_t | configTimeout | ||
) |
Configures a CTRE CanCoder with only the fields provided. All other fields are given the factory default values.
T | Structure containing any combination of the following members:
|
encoder | CANCoder object to configure |
configTimeout | Time to wait for response from CANCoder |
bool argos_lib::cancoder_config::CanCoderConfig | ( | CANCoder & | encoder, |
units::millisecond_t | configTimeout, | ||
argos_lib::RobotInstance | instance | ||
) |
Configures a CTRE CanCoder with configuration values according to specified robot instance.
CompetitionConfig | Configurations to use in competition robot instance |
PracticeConfig | Configurations to use in practice robot instance |
encoder | CANCoder object to configure |
configTimeout | Time to wait for response from CANCoder |
instance | Robot instance to use |