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:
@@ -51,7 +51,7 @@ void RobotContainer::ConfigureButtonBindings() {
|
||||
|
||||
// While holding the shoulder button, drive at half speed
|
||||
frc2::JoystickButton(&m_driverController, 6)
|
||||
.WhenPressed([this] { m_drive.SetMaxOutput(.5); })
|
||||
.WhenPressed([this] { m_drive.SetMaxOutput(0.5); })
|
||||
.WhenReleased([this] { m_drive.SetMaxOutput(1); });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user