Thanks for the help guys.
After studying further, when I shut the transmitter off, I realized that some values for duty cycle were correct and would fall through to the HPWM Command. The trouble was that one time it may be full on(255) and the next time zero, thus causing the motor to jerk on and off.
So I setup a routine(testsignalto watch 10 straight rcin values. If they were all within +/-5 of each other, I assume that we have a good signal again and jump back to loop2: otherwise, it would keep checking while forcing duty cycle to zero. So now, I can flip the transmitter on and off and the motor stays rock solid at zero speed.
John


to watch 10 straight rcin values. If they were all within +/-5 of each other, I assume that we have a good signal again and jump back to loop2: otherwise, it would keep checking while forcing duty cycle to zero. So now, I can flip the transmitter on and off and the motor stays rock solid at zero speed.


Bookmarks