View Single Post
  #4   Spotlight this post!  
Unread 11-01-2008, 23:20
Branden Ghena's Avatar
Branden Ghena Branden Ghena is offline
Previously: tawnos23
FRC #0240 (TEMPEST)
Team Role: College Student
 
Join Date: Nov 2005
Rookie Year: 2004
Location: Houghton, Michigan (MTU)
Posts: 303
Branden Ghena has a spectacular aura aboutBranden Ghena has a spectacular aura aboutBranden Ghena has a spectacular aura about
Re: SetPWM and our IR controls

I would check that the wheels are actually hooked up to pwms 1 and 2 (don't laugh I've done this), and whether the code is actually running, i.e. the the robot is in operator mode and is enabled.

You could also try a simpler loop
Quote:
void OperatorControl (void )
while(1)
{
printf("hello");
}
If you hook your computer up to the robot, and leave it attached when you run it, this should show something (make sure the terminal window isn't in GD mode)

Yes, the data processing function is the operator control mode where you put this code, and it is called automatically from Main(); so you should be good.

P.S. Also, I program in EasyC and have never had any problems with infinite loops for testing purposes.
__________________
Branden Ghena - Michigan Tech Student and Team 240 Alumnus
Working Towards: Electrical Engineering and Computer Engineering Double Major

"All we have to decide is what to do with the time that is given to us." - Gandalf

Last edited by Branden Ghena : 11-01-2008 at 23:24. Reason: I needed to add some info