2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
sensor_conversions::oui_oui_place Namespace Reference

Functions

constexpr double ToSensorUnit (const units::degree_t angle)
 
constexpr units::degree_t ToAngle (const double sensorUnits)
 
constexpr units::degrees_per_second_t ToVelocity (const double sensorVelocity)
 
constexpr double ToSensorVelocity (const units::degrees_per_second_t velocity)
 

Variables

constexpr double sensorConversionFactor = 360.0 / 2048
 multiply to convert raw sensor units to module degrees
 
constexpr double gearboxReduction = 1.0 / 15.0
 

Function Documentation

◆ ToAngle()

constexpr units::degree_t sensor_conversions::oui_oui_place::ToAngle ( const double  sensorUnits)
constexpr

◆ ToSensorUnit()

constexpr double sensor_conversions::oui_oui_place::ToSensorUnit ( const units::degree_t  angle)
constexpr

◆ ToSensorVelocity()

constexpr double sensor_conversions::oui_oui_place::ToSensorVelocity ( const units::degrees_per_second_t  velocity)
constexpr

◆ ToVelocity()

constexpr units::degrees_per_second_t sensor_conversions::oui_oui_place::ToVelocity ( const double  sensorVelocity)
constexpr

Variable Documentation

◆ gearboxReduction

constexpr double sensor_conversions::oui_oui_place::gearboxReduction = 1.0 / 15.0
constexpr

◆ sensorConversionFactor

constexpr double sensor_conversions::oui_oui_place::sensorConversionFactor = 360.0 / 2048
constexpr

multiply to convert raw sensor units to module degrees