Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   VEX (http://www.chiefdelphi.com/forums/forumdisplay.php?f=162)
-   -   SetMotor Code Problems (http://www.chiefdelphi.com/forums/showthread.php?t=51279)

Dmkaz 08-01-2007 18:22

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 ) ;
    }
}


WindTech 13-01-2007 07:37

Re: SetMotor Code Problems
 
Did you update all the firmware on said controller?


All times are GMT -5. The time now is 22:04.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi