|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Aux 1 & 2
What function blocks, and what steps do I take to get the aux 1 and aux 2 button on my joysticks to signal my pwm outputs?
![]() |
|
#2
|
|||
|
|||
|
Re: Aux 1 & 2
Assuming you're using EasyC you want to add something like this to your Operator_Control function
Code:
if(GetOIDInput([joystick port], [button]) == 1){
//Button pressed so drive motor
SetPWM([port], [value]);
}
else{
//Button not pressed stop motor
SetPWM([port], 127);
}
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| OI Aux Fault light red | Vashts6583 | Control System | 1 | 25-01-2006 23:10 |
| pic: Teams 1114, 1503 & 1680; NiagaraFIRST.org | Karthik | Robot Showcase | 15 | 25-02-2005 13:27 |
| pic: The Bobcats 2001 & 2003 & Admirers | CD47-Bot | Robot Showcase | 19 | 28-02-2004 12:36 |
| Aux Fuse 3 (Yaw Rate) | Josh Hambright | Electrical | 0 | 18-02-2003 08:22 |
| More than 2 aux switches in 1 port | f22flyboy | Programming | 2 | 01-11-2002 14:44 |