|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#2
|
||||
|
||||
|
Re: Programming Joystick Buttons to toggle a motor on and off
Joystick stick3(3);//obviously
Jaguar jag1(3);//PWM port 3 bool btn3state=false; if (stick3.GetRawButton(3)) { if (btn3state) { jag3.Set(0.5); btn3state=false; } else { jag3.Set(0.0); btn3state=true; } } |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| joystick and extra buttons | TEAM1949 | Programming | 3 | 18-02-2008 13:22 |
| Toggle Motor On & Off Help..... | programmr | Programming | 1 | 16-02-2008 11:15 |
| Programming Extra Joystick Buttons | Inverted | Programming | 2 | 08-02-2007 11:45 |
| Programming motors with joystick buttons | TMHStitans | Programming | 5 | 21-03-2005 21:07 |
| joystick buttons and a quick question | h0x4r | Programming | 2 | 17-02-2005 00:18 |