|
Re: Programming: MotorRcControl() vs GetRxInput()/SetServo()
An earlier search didn't turn up anything on SetMotor() or SetServo() but a second search turned up some examples using SetPWM(). I believe my problem has to do with the size of the variable I was using as an argument. Things seem to be working if I use:
unsigned char armASpeed = 0;
while(1) {
armASpeed = GetRxInput(1,3);
PrintToScreen("armASpeed: %d\n",(int)armASpeed);
SetPWM(8, armASpeed);
}
Thanks,
-Glenn
|