mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
SCRIPT namespace replacements
This commit is contained in:
committed by
Peter Johnson
parent
ae6c043632
commit
9aca8e0fd6
@@ -24,7 +24,7 @@ inline constexpr bool kLeftEncoderReversed = false;
|
||||
inline constexpr bool kRightEncoderReversed = true;
|
||||
|
||||
inline constexpr double kEncoderCPR = 1024;
|
||||
inline constexpr units::meter_t kWheelDiameter = 6_in;
|
||||
inline constexpr wpi::units::meter_t kWheelDiameter = 6_in;
|
||||
inline constexpr double kEncoderDistancePerPulse =
|
||||
// Assumes the encoders are directly mounted on the wheel shafts
|
||||
((kWheelDiameter * std::numbers::pi) / kEncoderCPR).value();
|
||||
@@ -76,7 +76,7 @@ inline constexpr auto kShooterTolerance = 50_tps;
|
||||
// robot.
|
||||
inline constexpr double kP = 1;
|
||||
|
||||
inline constexpr units::volt_t kS = 0.05_V;
|
||||
inline constexpr wpi::units::volt_t kS = 0.05_V;
|
||||
// Should have value 12V at free speed
|
||||
inline constexpr auto kV = 12_V / kShooterFree;
|
||||
|
||||
@@ -88,7 +88,7 @@ inline constexpr int kDriverControllerPort = 0;
|
||||
} // namespace OIConstants
|
||||
|
||||
namespace AutoConstants {
|
||||
constexpr units::second_t kTimeout = 3_s;
|
||||
constexpr units::meter_t kDriveDistance = 2_m;
|
||||
constexpr wpi::units::second_t kTimeout = 3_s;
|
||||
constexpr wpi::units::meter_t kDriveDistance = 2_m;
|
||||
constexpr double kDriveSpeed = 0.5;
|
||||
} // namespace AutoConstants
|
||||
|
||||
Reference in New Issue
Block a user