View Single Post
  #5   Spotlight this post!  
Unread 27-01-2004, 13:51
mtrawls's Avatar
mtrawls mtrawls is offline
I am JVN! (John von Neumann)
#0122 (NASA Knights)
Team Role: Programmer
 
Join Date: Mar 2003
Location: Hampton, VA
Posts: 295
mtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to behold
Send a message via AIM to mtrawls
Re: Autonomous help please

Quote:
Originally Posted by hobbes
There is really no code to show. In the user routines fast, there is a statement to put your autonomous code here. I place pwm## = 200;. I load the code into the robot. I put the robot into autonomous mode (using the switch built up as instructed, and it does work) and nothing happens (i.e. the motors programmed to drive forward do nothing). Im just at a loss, as to why the autonomous code does not execute.
I suppose it sounds obvious ... but are you sure you have the motors hooked up to pwm##? Try putting that same code in the Default_Routine function in user_routines.c, and see if it works without messing with autonomous mode. And still, it might be worthwhile to see the exact code you have ... I know from experience, that it is easy to overlook something simple if you aren't looking specifically for it.