diff --git a/examples/cpp/simgui.json b/examples/cpp/simgui.json index a8ccaa7c..7adda93f 100644 --- a/examples/cpp/simgui.json +++ b/examples/cpp/simgui.json @@ -20,16 +20,15 @@ "length": 0.8999999761581421, "width": 0.8999999761581421 }, - "bottom": 544, - "builtin": "2024 Crescendo", - "height": 8.013679504394531, - "left": 46, + "bottom": 1476, + "height": 8.210550308227539, + "left": 150, "path": { "arrows": false, "style": "Line" }, - "right": 1088, - "top": 36, + "right": 2961, + "top": 79, "width": 16.541748046875, "window": { "visible": true diff --git a/examples/cpp/src/main/cpp/RobotContainer.cpp b/examples/cpp/src/main/cpp/RobotContainer.cpp index cac2c679..e36bee76 100644 --- a/examples/cpp/src/main/cpp/RobotContainer.cpp +++ b/examples/cpp/src/main/cpp/RobotContainer.cpp @@ -7,6 +7,7 @@ #include #include #include +#include #include #include @@ -18,6 +19,9 @@ RobotContainer::RobotContainer() { NamedCommands::registerCommand("marker2", frc2::cmd::Print("Passed marker 2")); NamedCommands::registerCommand("print hello", frc2::cmd::Print("hello")); + // Use an event marker as a trigger + EventTrigger("Example Marker").OnTrue(frc2::cmd::Print("passed an event marker")); + // Configure the button bindings ConfigureBindings(); }