|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#2
|
||||
|
||||
|
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 |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Programming Vex w/ MPLab | dababyjebus | FIRST Tech Challenge | 27 | 25-04-2008 09:11 |
| Programming - Getting Started | Mark McLeod | Programming | 80 | 16-04-2008 23:37 |
| VEX programming | Gene F | Programming | 14 | 08-08-2006 22:21 |
| Programming Forum Warning | Brandon Martus | Announcements | 10 | 29-12-2005 13:32 |
| Robot Programming Education | phrontist | Programming | 11 | 03-05-2004 07:32 |