Go to Post anything is possible with dedication. - [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 06-02-2003, 00:07
Don's Avatar
Don Don is offline
Registered User
#0288 (the RoboDawgs)
 
Join Date: Jun 2001
Location: Grandville, Michigan
Posts: 92
Don is an unknown quantity at this point
Send a message via AIM to Don
autonomous mode timer

What is going on when the robot is disabled exactly? I ask this because I have a timer running for my autonomous mode and I want it to start when the robot is activated and autonomous mode begins. I do not want the timer to start while the robot is disabled.
I'm sure this is a relatively elementary question, so hopefully this'll have an easy answer.
  #2   Spotlight this post!  
Unread 06-02-2003, 00:22
wwrye wwrye is offline
Registered User
#0057 (Leopards)
 
Join Date: Jan 2003
Location: Houston
Posts: 18
wwrye is an unknown quantity at this point
Page 14 of the OI reference guide tells you exactly what all is still happening when the robot is disabled. The list includes - 'execution of Pbasic code', so if you had a basic timer it would most likely be counting while the robot is disabled. That is unless you test for the robot being enabled before the timer code:
Code:
 if comp_mode = 1 then  'comp_mode = 0 for disabled
'crucial timer code here
endif
  #3   Spotlight this post!  
Unread 06-02-2003, 12:43
EricS-Team180's Avatar
EricS-Team180 EricS-Team180 is offline
SPAM, the lunchmeat of superheroes!
AKA: Eric Schreffler
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Apr 2002
Rookie Year: 2001
Location: Stuart, Florida
Posts: 561
EricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond repute
Quote:
Originally posted by wwrye

Code:
 if comp_mode = 1 then  'comp_mode = 0 for disabled
'crucial timer code here
endif



ThankYou ThankYou ThankYou

Elementary, maybe, but crucial...
Right now we'd have integrators winding themselves up, while we are waiting to go from disabled to activated
__________________

Don't PANIC!
S. P. A. M.
  #4   Spotlight this post!  
Unread 06-02-2003, 14:11
Unsung FIRST Hero
Nate Smith Nate Smith is offline
FRC Key Volunteer Trainer
AKA: CrazyNate
no team
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Old Town, Maine
Posts: 1,029
Nate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to behold
Send a message via AIM to Nate Smith Send a message via Yahoo to Nate Smith
This is the "meat" of an e-mail that I got from IFI earlier this week...
Quote:
Clarification of Competition Mode and Autonomous Mode
Game Phase
comp_mode
auton_mode

Before the Match
comp_mode = high (1) (Robot is Disabled)
auton_mode = low (0)

During Autonomous
comp_mode = low (0)
auton_mode = high (1) (Robot in Autonomous)

During User Control
comp_mode = low (0)
auton_mode = low (0)

After the Match
comp_mode = high (1) (Robot is Disabled)
auton_mode = low (0)




The Operator Interface will transmit joystick and button data at all times except during the 15 second Autonomous Phase. This means that Operator Interface controls can be used to select various Autonomous programs prior to the match start.
__________________
Nate Smith
nsmith@smythsoft.com
12 seasons, 4 teams, and more time logged behind the scorekeeper's table than I care to remember...
returning for 2011? only time will tell...
  #5   Spotlight this post!  
Unread 09-02-2003, 17:55
web-hed's Avatar
web-hed web-hed is offline
Registered User
#0457
 
Join Date: Feb 2003
Location: San Antonio
Posts: 2
web-hed is an unknown quantity at this point
Send a message via Yahoo to web-hed
Question Is Timer Needed

So, is the timer needed if the autonomous mode bit will be set/unset for the team during competition mode? If so then the party responsible for setting the bit so that it can be read by all RCs might also be responsible for unsetting after 15 seconds. Any ideas?
__________________
Bill Gonzalez
Team #457 - South San High School
  #6   Spotlight this post!  
Unread 09-02-2003, 18:21
Ryan Meador Ryan Meador is offline
Registered User
#0190
Team Role: Electrical
 
Join Date: Jan 2002
Rookie Year: 1999
Location: Worcester, NH
Posts: 68
Ryan Meador will become famous soon enough
Both comp_mode and auton_mode will be set by the competition control system at the proper time to the proper state. That's the point of having them
__________________
-Ryan

"You're not a real programmer until you end all your sentences with semicolons;"
  #7   Spotlight this post!  
Unread 09-02-2003, 22:16
Anthony Kesich's Avatar
Anthony Kesich Anthony Kesich is offline
Programmer Turned Engineer
AKA: SonKenshin
#1097 (Site 3 Engineernig)
Team Role: Leadership
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Sacramento, CA
Posts: 186
Anthony Kesich has a spectacular aura aboutAnthony Kesich has a spectacular aura about
Send a message via AIM to Anthony Kesich
the best way to find if your auton and comp modes works, make a few swiches connected to a game port (ie the one on the comp port on the transmitter) and play around. the pdf with the wiring scheme is at innovationfirst.com found here: http://www.innovationfirst.com/FIRST...nout_Guide.PDF;

Hope this helps; (thats for you ryan)

-Kesich
__________________
C is screwing up my English--I'm ending all my sentences in semi-colons;

Horray for most things! -George Carlin

"Sure, I'll play rugby. Besides, I have a lot of experience running from really big guys who want to cream me." -Me, Freshman year
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
Programming Autonomous mode Jared Stofflett Programming 3 11-11-2003 09:32
autonomous mode problem on field Chris_C Programming 17 26-03-2003 19:11
Autonomous mode AntmanIV General Forum 1 17-02-2003 13:30
Image Discuss: autonomous mode destruction CD47-Bot Extra Discussion 5 15-02-2003 22:59
autonomous mode? bigwalt Technical Discussion 1 21-01-2003 01:14


All times are GMT -5. The time now is 05:09.

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