mirror of
https://github.com/brendanhaines/mecanum.git
synced 2025-04-11 11:14:42 -06:00
makes 'RESET' button test work
This commit is contained in:
parent
c09786801e
commit
074ebefed7
@ -11,10 +11,17 @@
|
|||||||
#define frontRightChannel 1
|
#define frontRightChannel 1
|
||||||
#define backRightChannel 2
|
#define backRightChannel 2
|
||||||
|
|
||||||
#define InterLink_Elite_ID 0
|
#define InterLink_Elite_ID 0
|
||||||
|
|
||||||
///// END USER PARAMETERS /////
|
///// 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
|
class Robot: public IterativeRobot
|
||||||
{
|
{
|
||||||
LiveWindow *lw;
|
LiveWindow *lw;
|
||||||
@ -63,7 +70,9 @@ public:
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
void TeleopPeriodic()
|
void TeleopPeriodic()
|
||||||
{}
|
{
|
||||||
|
SmartDashboard::PutBoolean( "resetButton", InterLink->GetRawButton( InterLink_Elite_RESET ) );
|
||||||
|
}
|
||||||
|
|
||||||
////////////////
|
////////////////
|
||||||
///// TEST /////
|
///// TEST /////
|
||||||
@ -72,7 +81,6 @@ public:
|
|||||||
void TestPeriodic()
|
void TestPeriodic()
|
||||||
{
|
{
|
||||||
lw->Run();
|
lw->Run();
|
||||||
SmartDashboard::PutBoolean( "resetButton", InterLink->GetRawButton(2) );
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user