View Single Post
  #2   Spotlight this post!  
Unread 27-03-2006, 00:56
GlennGraham's Avatar
GlennGraham GlennGraham is offline
Registered User
AKA: Glenn Graham
FLL #0006 (Shark Bait!)
Team Role: Coach
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Beaverton, Oregon
Posts: 20
GlennGraham is an unknown quantity at this point
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
Reply With Quote