Go to Post Of course this should be your decision- not the FIRST community's. Take charge of your destiny. - Wayne C. [more]
Home
Go Back   Chief Delphi > Other > VEX
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #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
  #2   Spotlight this post!  
Unread 13-01-2007, 07:37
WindTech WindTech is offline
Registered User
AKA: Mitch Thompson
FRC #0481 (The Hitchhikers)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2001
Location: California, Bay area
Posts: 14
WindTech will become famous soon enoughWindTech will become famous soon enough
Send a message via AIM to WindTech
Re: SetMotor Code Problems

Did you update all the firmware on said controller?
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 03:46.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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