Skip to content

Commit

Permalink
Test for simulation crash
Browse files Browse the repository at this point in the history
  • Loading branch information
prak132 committed Jan 12, 2025
1 parent 972dd69 commit e48139f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ deploy {
def deployArtifact = deploy.targets.roborio.artifacts.frcCpp

// Set this to true to enable desktop support.
def includeDesktopSupport = false
def includeDesktopSupport = true

// Set to true to run simulation in debug mode
wpi.cpp.debugSimulation = true
Expand Down
2 changes: 1 addition & 1 deletion src/frc846/cpp/frc846/robot/xbox.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ XboxReadings::XboxReadings(frc::XboxController& xbox, double trigger_threshold)
start_button(xbox.GetStartButton()),
rsb(xbox.GetRightStickButton()),
a_button(xbox.GetAButton()),
test b_button(xbox.GetBButton()),
b_button(xbox.GetBButton()),
x_button(xbox.GetXButton()),
y_button(xbox.GetYButton()),
pov(static_cast<frc846::robot::XboxPOV>(xbox.GetPOV())) {}
Expand Down
3 changes: 3 additions & 0 deletions src/y2025/cpp/FunkyRobot.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ FunkyRobot::FunkyRobot() : GenericRobot{&container_} {}
void FunkyRobot::OnInitialize() {
container_.leds_.SetDefaultCommand(LEDsCommand{container_});

LEDsSubsystem* hi = nullptr;
hi->Init();

Field::Setup();

// for (auto x : Field::getAllAutoData()) {
Expand Down

0 comments on commit e48139f

Please sign in to comment.