Go to Post The events are not just a competition, but a celebration of 6 weeks of hard work. - ChristinaR [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 08-02-2007, 19:38
kaszeta's Avatar
kaszeta kaszeta is offline
Registered User
FRC #0095 (Grasshoppers)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Lebanon, NH
Posts: 334
kaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of light
Re: OI Input Autonomous

Quote:
Originally Posted by pheadxdll View Post
I thought the Master code didn't allow any data transfer between the OI and the RC during autno mode.
It doesn't. But when the robot is on the field before the match, it isn't in autonomous mode, but it is disabled.

In this state, you can do just about anything except set any outputs on the RC (you can read inputs on the RC and the OI, and save these for when you start autonomous mode).
  #2   Spotlight this post!  
Unread 08-02-2007, 23:35
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: OI Input Autonomous

Quote:
Originally Posted by kaszeta View Post
In this state, you can do just about anything except set any outputs on the RC (you can read inputs on the RC and the OI, and save these for when you start autonomous mode).
Close - You can set outputs, but they don't actually make it to the pins.

This is an important distinction when debugging. The dashboard displays the PWM values, even when you're disabled. This is useful if you don't want your arm to swing wildly.

[/nit pick]
  #3   Spotlight this post!  
Unread 09-02-2007, 00:33
kaszeta's Avatar
kaszeta kaszeta is offline
Registered User
FRC #0095 (Grasshoppers)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Lebanon, NH
Posts: 334
kaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of light
Re: OI Input Autonomous

Quote:
Originally Posted by Astronouth7303 View Post
Close - You can set outputs, but they don't actually make it to the pins.
A useful nitpick. I use this very technique to demonstrate how the drive train feedback loop works every year, and how you can make sure the values are correct before enabling it.
  #4   Spotlight this post!  
Unread 09-02-2007, 22:57
Tt321b Tt321b is offline
Registered User
AKA: Tony
FRC #1803
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Port Washington, NY
Posts: 28
Tt321b is a jewel in the roughTt321b is a jewel in the roughTt321b is a jewel in the rough
Send a message via AIM to Tt321b
Re: OI Input Autonomous

I like that code that you found and i tried using it in our code but I get a syntax error on the line that says:

void auton_selector(void)

I declared the global variable in user_routines.c and put the extern int in the user_routines_fast.c (both are in the correct places). I changed the AUTON_UP and AUTON_DN to buttons on the joystick. I changed the 94 to 99. I also checked the lines before it so see if I left out a ; or } but I did'nt.

I also got another syntax error when I try using auton_select in user_routines_fast.c to select the autonomous.


Thanks!
  #5   Spotlight this post!  
Unread 10-02-2007, 20:58
AlmightyPiMan AlmightyPiMan is offline
Programmer, Animator, Fire-maker
AKA: Michael
FRC #1996 (Blue Springs Robotics Team)
Team Role: Electrical
 
Join Date: Feb 2007
Rookie Year: 2007
Location: Independence, Mo
Posts: 3
AlmightyPiMan is an unknown quantity at this point
Re: OI Input Autonomous

sorry for my lack of knowledge, i'm a rookie, but i don't get why a team would want to set a button for autonomous mode at all. isn't it controlled via the competition port and thus out of our hands? in the docs for the OI it says that if you jumper pins 5 and 8, it puts the bot into auto mode. i imagine that's what they do at the competitions, not have a team member push a button on the controller...
  #6   Spotlight this post!  
Unread 10-02-2007, 21:10
Jim E Jim E is offline
Registered User
FRC #1523 (M.A.R.S.)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Lantana, FL
Posts: 188
Jim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond repute
Re: OI Input Autonomous

Basically, you want to build a dongle to simulate autonomous mode for code testing. Yes, during the competition, the field controls autonomous, but you need the dongle to test out your code (if any) prior to getting there. It can be built with $5.00 of parts. It is VERY USEFUL to have. Do the right thing and build it. Do not forget the disable switch either. You never know when your code registers may carry over and find you robot going backwards at maximum speed when you least expect it.
__________________
Team MARS = 1.523 AU from the SUN!

Jim E.
  #7   Spotlight this post!  
Unread 10-02-2007, 21:39
kaszeta's Avatar
kaszeta kaszeta is offline
Registered User
FRC #0095 (Grasshoppers)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Lebanon, NH
Posts: 334
kaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of light
Re: OI Input Autonomous

Quote:
Originally Posted by AlmightyPiMan View Post
sorry for my lack of knowledge, i'm a rookie, but i don't get why a team would want to set a button for autonomous mode at all. isn't it controlled via the competition port and thus out of our hands? in the docs for the OI it says that if you jumper pins 5 and 8, it puts the bot into auto mode. i imagine that's what they do at the competitions, not have a team member push a button on the controller...
You're confusing two (related) issues:

1. You can build a dongle or jumper the competition ports to test your autonomous mode during development. At the competition, you are correct, the competition port handles this.

2. Many teams have multiple autonomous strategies, or at least variations on strategies (for example, left- and right-handed versions of the same strategy for starting on that particular side of the field). Our team usually has a whole suite of strategies (eight last year, although only three of them turned out to be useful, plus a fourth we developed at the competition based upon experience), and we pick them right before the match in consultation with the rest of our alliance. Sometimes we also call an audible and change the strategy right at the last possible second. Of course, you can't change the code at this point, so you need a way to change which autonomous mode you're running, either from the robot (switches and pots hooked to digital or analog inputs), or from the OI (using the OI ports). The latter is what people are talking about here, ways of setting the autonomous strategy while the bot is disabled and the field is being set up, but before the match (and autonomous mode itself) starts.

Real example: Last year, our primary strategy was to drive towards the goal, line up, and shoot copious amounts of balls into the target. We had three versions of that strategy, with different amounts of distance to drive depending on which position we started from.

We also found that the other alliance would usually dedicate at least one bot into crashing into us during autonomous to either block us or mess with our aim, usually by dead-reckoning across the field. So we had a variant of the primary strategy that waited several seconds in our starting box before driving towards the goal and scoring (we scored very, very quickly, so we could afford to wait five seconds). This (usually) allowed the other team's defensive bot to drive right by, and we'd then move up and score. The decision on whether to drive directly at the goal or do the delayed version was decided by the drive team based upon how the other alliance lined up their bots: if they were obviously aiming to intercept us, we'd change strategies.
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
User Input railerobotics Programming 4 29-08-2006 00:54
Powered OI input EricS-Team180 Programming 7 28-09-2003 21:23
Graphic Input Raven_Writer Computer Graphics 7 08-08-2003 15:43
Autonomous user-input loophole? Jeff McCune Programming 20 14-02-2003 22:44
2.5 is alive !!!! (input ! .. more input ! ) Lloyd Burns Programming 2 14-01-2003 19:15


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

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