mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
[docs] Add missing docs to enum fields (NFC) (#6150)
Co-authored-by: Tyler Veness <calcmogul@gmail.com>
This commit is contained in:
@@ -210,32 +210,54 @@ class DifferentialDrivetrainSim {
|
||||
*/
|
||||
class KitbotGearing {
|
||||
public:
|
||||
/// Gear ratio of 12.75:1.
|
||||
static constexpr double k12p75 = 12.75;
|
||||
/// Gear ratio of 10.71:1.
|
||||
static constexpr double k10p71 = 10.71;
|
||||
/// Gear ratio of 8.45:1.
|
||||
static constexpr double k8p45 = 8.45;
|
||||
/// Gear ratio of 7.31:1.
|
||||
static constexpr double k7p31 = 7.31;
|
||||
/// Gear ratio of 5.95:1.
|
||||
static constexpr double k5p95 = 5.95;
|
||||
};
|
||||
|
||||
/**
|
||||
* Represents common motor layouts of the kit drivetrain.
|
||||
*/
|
||||
class KitbotMotor {
|
||||
public:
|
||||
/// One CIM motor per drive side.
|
||||
static constexpr frc::DCMotor SingleCIMPerSide = frc::DCMotor::CIM(1);
|
||||
/// Two CIM motors per drive side.
|
||||
static constexpr frc::DCMotor DualCIMPerSide = frc::DCMotor::CIM(2);
|
||||
/// One Mini CIM motor per drive side.
|
||||
static constexpr frc::DCMotor SingleMiniCIMPerSide =
|
||||
frc::DCMotor::MiniCIM(1);
|
||||
/// Two Mini CIM motors per drive side.
|
||||
static constexpr frc::DCMotor DualMiniCIMPerSide = frc::DCMotor::MiniCIM(2);
|
||||
/// One Falcon 500 motor per drive side.
|
||||
static constexpr frc::DCMotor SingleFalcon500PerSide =
|
||||
frc::DCMotor::Falcon500(1);
|
||||
/// Two Falcon 500 motors per drive side.
|
||||
static constexpr frc::DCMotor DualFalcon500PerSide =
|
||||
frc::DCMotor::Falcon500(2);
|
||||
/// One NEO motor per drive side.
|
||||
static constexpr frc::DCMotor SingleNEOPerSide = frc::DCMotor::NEO(1);
|
||||
/// Two NEO motors per drive side.
|
||||
static constexpr frc::DCMotor DualNEOPerSide = frc::DCMotor::NEO(2);
|
||||
};
|
||||
|
||||
/**
|
||||
* Represents common wheel sizes of the kit drivetrain.
|
||||
*/
|
||||
class KitbotWheelSize {
|
||||
public:
|
||||
/// Six inch diameter wheels.
|
||||
static constexpr units::meter_t kSixInch = 6_in;
|
||||
/// Eight inch diameter wheels.
|
||||
static constexpr units::meter_t kEightInch = 8_in;
|
||||
/// Ten inch diameter wheels.
|
||||
static constexpr units::meter_t kTenInch = 10_in;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user