|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
SetMotor Code Problems
I have been working on the code for a holonomic drive system for some time now and when it hasn't been working, I always thought it was something to do with the code, now I'm starting to beleve not.
The problem seems to be happening when I throw in a SetMotor block into the loop. I've done print screens to make sure the value is comming back correctly, but when I put in the SetMotor block, 1. the drive motors start acting sparatic, not just the one I am calling to but ALL 8 outputs on the reciever. Also, I am getting no input from the controller at all. The reciever is not showing the controller is even on. Here is the following code I am using... Code:
#include "UserAPI.h"
unsigned int blah;
void main ( void )
{
while ( 1 )
{
blah = GetRxInput ( 1 , 1) ;
PrintToScreen ( "%d\n" , (int)blah ) ;
SetMotor ( 1 , blah ) ;
}
}
|
|
#2
|
|||
|
|||
|
Re: SetMotor Code Problems
Did you update all the firmware on said controller?
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problems Combining Camera Code and Driving Code | cmurdoch | Programming | 20 | 10-02-2007 16:34 |
| GTS code Problems | caderader | Programming | 8 | 13-02-2006 19:23 |
| problems using gyro/adc code with camera default code | tanstaafl | Programming | 7 | 22-01-2006 23:09 |
| Labview problems and code problems | ajsetter | Programming | 25 | 18-01-2006 17:07 |
| Code problems | doyler | Programming | 14 | 15-02-2005 16:23 |