From 074ebefed7477666b788e230a1f08714135910a6 Mon Sep 17 00:00:00 2001 From: Brendan Date: Fri, 15 May 2015 21:42:12 -0600 Subject: [PATCH] makes 'RESET' button test work --- src/Robot.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/Robot.cpp b/src/Robot.cpp index f9b32d1..cda83d9 100644 --- a/src/Robot.cpp +++ b/src/Robot.cpp @@ -11,10 +11,17 @@ #define frontRightChannel 1 #define backRightChannel 2 -#define InterLink_Elite_ID 0 +#define InterLink_Elite_ID 0 ///// END USER PARAMETERS ///// +// InterLink Elite Channel Mapping +#define InterLink_Elite_CH5 1 +#define InterLink_Elite_CH7 2 +#define InterLink_Elite_RESET 3 +#define InterLink_Elite_CH8_BACK 4 +#define InterLink_Elite_CH8_FRONT 5 + class Robot: public IterativeRobot { LiveWindow *lw; @@ -63,7 +70,9 @@ public: {} void TeleopPeriodic() - {} + { + SmartDashboard::PutBoolean( "resetButton", InterLink->GetRawButton( InterLink_Elite_RESET ) ); + } //////////////// ///// TEST ///// @@ -72,7 +81,6 @@ public: void TestPeriodic() { lw->Run(); - SmartDashboard::PutBoolean( "resetButton", InterLink->GetRawButton(2) ); } };