|
Re: SetPWM and our IR controls
taggartbg, This may sound obvious, but make sure the PWM cable is connected FROM the victor TO the RC on the PWM ports (ports 1 and 2).
Could be you connected it to a spike, and to the best of my knowledge, you can't put half speed when the motor is connected to a spike.
As said by others, you don't need the continue statement.
And in EasyC pro you do need an infinite loop but put it in the MAIN function (I'm doing it that way).
It's not good to put an infinite while loop in your own functions.
Just put a while(1) loop in MAIN function, and then drag and drop your OperatorController function into the loop and it should work properly.
__________________
2007 Israel Regional GM/Technion Rookie Allstars
Participated in 2007 Atlanta World Championships (Newton Division)
|