Go to Post I'll wait for someone else to do it, then disagree with whatever they say. :p - Jcarbon [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 24-02-2004, 15:33
tml240's Avatar
tml240 tml240 is offline
bahh
no team
Team Role: Alumni
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Ann Arbor, MI
Posts: 63
tml240 is on a distinguished road
Autonomous testing question

according to our sources, the user_routines_fast.c would not work for autonomous testing, because we do not have signal from FIRST competition arena to activate the Autonomous part in the user_routines_fast.C. anyone knows how fix the code to test it in user_routines_fast.c?
__________________

OHL 2004- ultimate NHL 2004 MOD
  #2   Spotlight this post!  
Unread 24-02-2004, 15:42
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Autonomous testing question

Quote:
Originally Posted by tml240
according to our sources, the user_routines_fast.c would not work for autonomous testing, because we do not have signal from FIRST competition arena to activate the Autonomous part in the user_routines_fast.C. anyone knows how fix the code to test it in user_routines_fast.c?
The Competition Port Pinout Guide at http://www.innovationfirst.com/FIRST...nout_Guide.PDF shows you how to wire a "dongle" to send the autonomous mode signal to the robot controller.
  #3   Spotlight this post!  
Unread 24-02-2004, 15:46
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,856
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: Autonomous testing question

Quote:
Originally Posted by tml240
according to our sources, the user_routines_fast.c would not work for autonomous testing, because we do not have signal from FIRST competition arena to activate the Autonomous part in the user_routines_fast.C. anyone knows how fix the code to test it in user_routines_fast.c?
Several methods:

1) Build a competition port dongle as noted above
2) Assign a joystick button or a robot switch to start autonomous, e.g.,
Code:
in main.c after Getdata()
 
autonomous_mode = !p1_sw_trig;
With a joystick trigger holding the button could keep it in autonomous and releasing it could immediately stop auto. You'll need a way to stop quickly.
3) Hardcode a call to your autonomous routine and pull the OI power to emergency stop.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 24-02-2004 at 15:49.
  #4   Spotlight this post!  
Unread 24-02-2004, 15:53
tml240's Avatar
tml240 tml240 is offline
bahh
no team
Team Role: Alumni
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Ann Arbor, MI
Posts: 63
tml240 is on a distinguished road
Re: Autonomous testing question

what is going to happen if we change
while (autonomous);

to

while (1)?
__________________

OHL 2004- ultimate NHL 2004 MOD
  #5   Spotlight this post!  
Unread 24-02-2004, 15:56
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,856
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: Autonomous testing question

Quote:
Originally Posted by tml240
what is going to happen if we change
while (autonomous);

to

while (1)?
The robot will start auto as soon as it's turned on and run over your programmer.
You can keep it quiet by keeping your OI unplugged while you're turning the robot on.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #6   Spotlight this post!  
Unread 24-02-2004, 15:57
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,187
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: Autonomous testing question

well u will have a never ending loop of autonomous.. i would NOT advise that. If your robot goes on a rampage, there is no way to stop it. Also, you will not be able to call that function without some outside event, like the trigger stated above, so you will never get into auto mode anyway...

just set your RC's team number to 0000. This sets in auto mode.
  #7   Spotlight this post!  
Unread 24-02-2004, 16:04
tml240's Avatar
tml240 tml240 is offline
bahh
no team
Team Role: Alumni
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Ann Arbor, MI
Posts: 63
tml240 is on a distinguished road
Re: Autonomous testing question

Quote:
Originally Posted by ToMMan b182
well u will have a never ending loop of autonomous.. i would NOT advise that. If your robot goes on a rampage, there is no way to stop it. Also, you will not be able to call that function without some outside event, like the trigger stated above, so you will never get into auto mode anyway...

just set your RC's team number to 0000. This sets in auto mode.
Would the auto mode be completely set on if we set the team number to 0's, without any programing involved?
__________________

OHL 2004- ultimate NHL 2004 MOD
  #8   Spotlight this post!  
Unread 24-02-2004, 16:09
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,856
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: Autonomous testing question

Quote:
Originally Posted by tml240
Would the auto mode be completely set on if we set the team number to 0's, without any programing involved?
Yep, it will always be on.
You have to tether the robot the first time you change the Team #, and remember the robot will attempt to flee taking your programmer with it.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #9   Spotlight this post!  
Unread 24-02-2004, 16:12
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,187
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: Autonomous testing question

There are 3 "modes" that the RC can process. It can only be in one mode at a time. The 3 modes are User Control Mode, Automous Mode, and Disabled Mode. In user mode, the Default_Routine() function is called. Any code in this routine is repeated about every 25 milliseconds. The mappings in this file is what links your joystick to motor outputs.
Disabled Mode is a function that disables all outputs on the RC.
All autonomous mode is another function that still allows outputs, but no inputs to be linked to outputs. This is why all the code must be self contained in auto mode, by using counters or whatnot..

When you set a team number, it is setting your robot to run by default in user mode. This will loop indefinitely until an outside event triggers a new call (or the battery dies) When the team number is 0000, the RC interperets that as just another call to the automous mode.. so it will always be true (on) There is no need to change the program to test it this way.

Also, if you are using this method and timers in your code.... if your code reached until the end of the 15 second auto period, i recomend puting else statements or something else at the end of your code that will set all of your output values to neutral so you dont run someone over.
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
A better autonomous method.. randomperson Programming 4 24-02-2004 18:02
question about autonomous timing zainali Programming 6 23-02-2004 22:58
Initializing autonomous mode Mr. Lim Programming 7 02-02-2004 07:26
autonomous mode problem on field Chris_C Programming 17 26-03-2003 19:11
Autonomous Kill Switch UCGL_Guy Programming 8 15-01-2003 17:39


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

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