mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[wpilibcExamples] Prefix decimal numbers with 0 (#3478)
This commit is contained in:
@@ -74,7 +74,7 @@ constexpr double kPRearRightVel = 0.5;
|
||||
|
||||
namespace ModuleConstants {
|
||||
constexpr int kEncoderCPR = 1024;
|
||||
constexpr double kWheelDiameterMeters = .15;
|
||||
constexpr double kWheelDiameterMeters = 0.15;
|
||||
constexpr double kDriveEncoderDistancePerPulse =
|
||||
// Assumes the encoders are directly mounted on the wheel shafts
|
||||
(kWheelDiameterMeters * wpi::numbers::pi) /
|
||||
|
||||
@@ -89,9 +89,9 @@ class DriveSubsystem : public frc2::SubsystemBase {
|
||||
void ResetOdometry(frc::Pose2d pose);
|
||||
|
||||
units::meter_t kTrackWidth =
|
||||
.5_m; // Distance between centers of right and left wheels on robot
|
||||
0.5_m; // Distance between centers of right and left wheels on robot
|
||||
units::meter_t kWheelBase =
|
||||
.7_m; // Distance between centers of front and back wheels on robot
|
||||
0.7_m; // Distance between centers of front and back wheels on robot
|
||||
|
||||
frc::SwerveDriveKinematics<4> kDriveKinematics{
|
||||
frc::Translation2d(kWheelBase / 2, kTrackWidth / 2),
|
||||
|
||||
Reference in New Issue
Block a user