mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[hal,wpilib] Rename DriverStation constants to all caps
This commit is contained in:
@@ -19,7 +19,7 @@ class POVButtonTest : public CommandTestBase {};
|
||||
|
||||
TEST_F(POVButtonTest, SetPOV) {
|
||||
wpi::sim::JoystickSim joysim(1);
|
||||
joysim.SetPOV(wpi::DriverStation::kUp);
|
||||
joysim.SetPOV(wpi::DriverStation::POVDirection::UP);
|
||||
joysim.NotifyNewData();
|
||||
|
||||
auto& scheduler = CommandScheduler::GetInstance();
|
||||
@@ -28,11 +28,11 @@ TEST_F(POVButtonTest, SetPOV) {
|
||||
WaitUntilCommand command([&finished] { return finished; });
|
||||
|
||||
wpi::Joystick joy(1);
|
||||
POVButton(&joy, wpi::DriverStation::kRight).OnTrue(&command);
|
||||
POVButton(&joy, wpi::DriverStation::POVDirection::RIGHT).OnTrue(&command);
|
||||
scheduler.Run();
|
||||
EXPECT_FALSE(scheduler.IsScheduled(&command));
|
||||
|
||||
joysim.SetPOV(wpi::DriverStation::kRight);
|
||||
joysim.SetPOV(wpi::DriverStation::POVDirection::RIGHT);
|
||||
joysim.NotifyNewData();
|
||||
|
||||
scheduler.Run();
|
||||
|
||||
Reference in New Issue
Block a user