Go to Post However, do not confuse faith in your ability to overcome challenging obstacles, with the difficulty of the obstacles themselves. - Joe G. [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


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
help us program our controls dude_brd Programming 1 10-02-2007 12:02
need help on programing our controls dude_brd Programming 1 07-02-2007 18:42
FRC: Reset and Program Controls yanksrock777 General Forum 4 24-01-2007 22:37
Push Button and Switch Suppliers for OI controls Goldberg204 Control System 8 11-01-2007 15:27
pic: 383`s controls and driver Manoel Robot Showcase 13 03-03-2005 00:57


All times are GMT -5. The time now is 18:44.

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