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

Functions

constexpr double ToSensorUnit (const units::degree_t degrees)
 
constexpr units::degree_t ToAngle (const double sensorunit)
 

Variables

constexpr double sensorConversionFactor
 multiply to convert raw sensor units to module degrees
 

Function Documentation

◆ ToAngle()

constexpr units::degree_t sensor_conversions::swerve_drive::turn::ToAngle ( const double  sensorunit)
constexpr

◆ ToSensorUnit()

constexpr double sensor_conversions::swerve_drive::turn::ToSensorUnit ( const units::degree_t  degrees)
constexpr

Variable Documentation

◆ sensorConversionFactor

constexpr double sensor_conversions::swerve_drive::turn::sensorConversionFactor
constexpr
Initial value:
=
360.0 / 4096

multiply to convert raw sensor units to module degrees