Log in

View Full Version : Aux 1 & 2


WGRAY
12-02-2007, 14:49
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?:confused:

Imajie
12-02-2007, 14:59
Assuming you're using EasyC you want to add something like this to your Operator_Control function

if(GetOIDInput([joystick port], [button]) == 1){
//Button pressed so drive motor
SetPWM([port], [value]);
}
else{
//Button not pressed stop motor
SetPWM([port], 127);
}


I believe that 3 and 4 are the numbers for the aux1 and 2 but I could be wrong.