2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
cancoder_config.h File Reference
#include <units/time.h>
#include "compile_time_member_check.h"
#include "ctre/Phoenix.h"

Go to the source code of this file.

Classes

struct  argos_lib::cancoder_config::has_direction< T, typename >
 
struct  argos_lib::cancoder_config::has_direction< T, decltype((void) T::direction, void())>
 
struct  argos_lib::cancoder_config::has_initMode< T, typename >
 
struct  argos_lib::cancoder_config::has_initMode< T, decltype((void) T::initMode, void())>
 
struct  argos_lib::cancoder_config::has_magOffset< T, typename >
 
struct  argos_lib::cancoder_config::has_magOffset< T, decltype((void) T::magOffset, void())>
 
struct  argos_lib::cancoder_config::has_range< T, typename >
 
struct  argos_lib::cancoder_config::has_range< T, decltype((void) T::range, void())>
 

Namespaces

namespace  argos_lib
 
namespace  argos_lib::cancoder_config
 

Functions

template<typename T >
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.
 
template<typename CompetitionConfig , typename PracticeConfig >
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.