|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#4
|
|||
|
|||
|
Re: Help with toggle-button
All you would have to change is this part of the code assuming you keep Booleons named the same:
Code:
if(Piston){
piston.Set(Relay::kForward);
} else if (!Piston){
piston.Set(Relay::kReverse);
}
Code:
if(Piston){
Talon1.Set(Stick.GetY()); // Where as the talon1 would be controlled by the Y axis of the Joystick
} else if (!Piston){
Talon2.Set(Stick.GetY());// Where as another talon, talon2, would be controlled by the Y axis of the Joystick
}
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|