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

Functions

constexpr units::inch_t ToExtension (const double sensorUnit)
 
constexpr double ToSensorUnit (const units::inch_t extension)
 
constexpr units::inches_per_second_t ToVelocity (const double sensorVelocity)
 
constexpr double ToSensorVelocity (const units::inches_per_second_t velocity)
 

Variables

constexpr double sensorToMotorRevolution = 1.0 / 2048
 
constexpr double gearboxReduction = 1.0 / 5
 
constexpr double driveSprocketTeeth = 15.0
 
constexpr double extensionInchesPerTooth = 0.375 / 1
 

Function Documentation

◆ ToExtension()

constexpr units::inch_t sensor_conversions::bashguard::ToExtension ( const double  sensorUnit)
constexpr

◆ ToSensorUnit()

constexpr double sensor_conversions::bashguard::ToSensorUnit ( const units::inch_t  extension)
constexpr

◆ ToSensorVelocity()

constexpr double sensor_conversions::bashguard::ToSensorVelocity ( const units::inches_per_second_t  velocity)
constexpr

◆ ToVelocity()

constexpr units::inches_per_second_t sensor_conversions::bashguard::ToVelocity ( const double  sensorVelocity)
constexpr

Variable Documentation

◆ driveSprocketTeeth

constexpr double sensor_conversions::bashguard::driveSprocketTeeth = 15.0
constexpr

◆ extensionInchesPerTooth

constexpr double sensor_conversions::bashguard::extensionInchesPerTooth = 0.375 / 1
constexpr

◆ gearboxReduction

constexpr double sensor_conversions::bashguard::gearboxReduction = 1.0 / 5
constexpr

◆ sensorToMotorRevolution

constexpr double sensor_conversions::bashguard::sensorToMotorRevolution = 1.0 / 2048
constexpr