View Single Post
  #1   Spotlight this post!  
Unread 08-01-2007, 18:22
Dmkaz Dmkaz is offline
Registered User
no team
 
Join Date: Jun 2006
Location: Indiana
Posts: 3
Dmkaz is an unknown quantity at this point
Send a message via AIM to Dmkaz
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 ) ; 
     }
}
Reply With Quote