Go to Post The flux capacitor should have been allowed under the flowchart as long as it met the single component maximum cost. I did check with Digikey and they no longer carry the line. - Al Skierkiewicz [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

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-02-2006, 20:11
colman77
 
Posts: n/a
even simple autonomous code doesn't work??

OK so autonomous mode doesn't seem to have control of the robot...
We are putting our robot into autonomous mode by setting the tean number to 0 on the OI, yanking out the tether cable, and resetting.
We know that it's running the autonomous function in user_routines_fast.c, because we can put a printf in there and it'll print.

However.

If we put ANY statement controlling the pwm's-- no matter how simple-- our victors refuse to do anything but blink orange.
Even if we put
pwm01 = pwm02 = pwm03 = pwm04 = 255;
LIGHTS DON'T CHANGE... and if we hook a fan up to any of them, it doesn't spin.

Any ideas? The lights on the victors DO change when you're in autonomous, right?

Last edited by colman77 : 17-02-2006 at 20:26.
  #2   Spotlight this post!  
Unread 17-02-2006, 20:43
Salik Syed Salik Syed is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Alumni
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Stanford CA.
Posts: 514
Salik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud of
Send a message via AIM to Salik Syed
Re: even simple autonomous code doesn't work??

Quote:
Originally Posted by colman77
OK so autonomous mode doesn't seem to have control of the robot...
We are putting our robot into autonomous mode by setting the tean number to 0 on the OI, yanking out the tether cable, and resetting.
We know that it's running the autonomous function in user_routines_fast.c, because we can put a printf in there and it'll print.

However.

If we put ANY statement controlling the pwm's-- no matter how simple-- our victors refuse to do anything but blink orange.
Even if we put
pwm01 = pwm02 = pwm03 = pwm04 = 255;
LIGHTS DON'T CHANGE... and if we hook a fan up to any of them, it doesn't spin.

Any ideas? The lights on the victors DO change when you're in autonomous, right?

ummm... printf does not run during autonomous ! i would suggest building a dongle, look up white papers on how to do this... its fairly easy... if ur in a hurry grab one of those 13pin (?) competition port size cable plug it in and short the right wires
__________________
Team 701
  #3   Spotlight this post!  
Unread 17-02-2006, 20:52
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: even simple autonomous code doesn't work??

Quote:
Originally Posted by Salik Syed
ummm... printf does not run during autonomous ! i would suggest building a dongle, look up white papers on how to do this... its fairly easy... if ur in a hurry grab one of those 13pin (?) competition port size cable plug it in and short the right wires
A generalization like is silly, I've run printf's in autonomous, you simply need the stdio.h present.

It's been my experience that setting the team number to 0 does induce autonomous, but without an OI attached the robot remains disabled, so the motor outputs are blocked, just like regular disabled mode. You're better off connecting the OI and building the dongle, it takes fifteen minutes or so.
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
  #4   Spotlight this post!  
Unread 17-02-2006, 21:11
Salik Syed Salik Syed is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Alumni
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Stanford CA.
Posts: 514
Salik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud of
Send a message via AIM to Salik Syed
Re: even simple autonomous code doesn't work??

whoops... my bad... yeah you could definitely run printf during autonomous... but by default it is not included so maybe thats an indication that ur not really in autonomous mode... thats what I should've said...
__________________
Team 701
  #5   Spotlight this post!  
Unread 17-02-2006, 23:58
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,754
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: even simple autonomous code doesn't work??

See if this persons solution helps you.

http://www.chiefdelphi.com/forums/sh...05&postcount=4
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Closed Thread


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
Example gyro code released. Kevin Watson Programming 60 17-03-2005 18:32
Where to insert code Autonomous mode caderader Programming 5 18-02-2005 16:49
a simple autonomous mode question chippermonky Programming 3 18-02-2005 01:54
Updated: Serial Port Driver Code Kevin Watson Programming 4 05-02-2005 18:39
Sourceforge for Code Repository and other stuff SilverStar Programming 9 15-01-2005 21:16


All times are GMT -5. The time now is 13:56.

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