View Full Version : autonomus rules....
Validius
16-03-2006, 11:09
Can the robot read from the OI during autonomus? That is, can i have switches on the OI to dictate what autonomus i want to use?
Mark McLeod
16-03-2006, 11:13
Can the robot read from the OI during autonomus? That is, can i have switches on the OI to dictate what autonomus i want to use?
When the autonomous flag is set you cannot see the OI control settings. They appear to be neutral for the pots and off for the switches.
Just read and save the OI settings whenever the autonomous flag is not set. After it's set use your saved OI values.
Validius
16-03-2006, 11:33
After the autonomous flag is set you cannot see the OI control settings.
Just read and save the OI settings whenever the autonomous flag is not set. After it's set use your saved OI values.
So in the few moments between turning the robot on and autonomus when disable is set the bot can read those paramaters?
Mark McLeod
16-03-2006, 11:38
So in the few moments between turning the robot on and autonomus when disable is set the bot can read those paramaters?
Yes, the OI values come through fine while only the Disabled flag is set.
Validius
16-03-2006, 11:39
Yes, the OI values come through fine while only the Disabled flag is set.
Beautiful, thank you.
kevin.li.rit
16-03-2006, 15:47
Can the robot read from the OI during autonomus? That is, can i have switches on the OI to dictate what autonomus i want to use?
If you want to switch between autonomous modes you should use the Digital Inputs on the RC. Just wire a switch to each Digital Input for each autonmous mode you need, between the signal and the ground.
Just the way I would do it.
Andrew Blair
16-03-2006, 16:46
What works very nicely is to use a pot on the OI, saving it's vale into a variable to set you auto-mode. Lets you change the auto from the player station, and is so much more convenient.
SoftwareBug2.0
16-03-2006, 19:48
I guess I'm a fan of the only system that hasn't been mentioned yet: analog controls on the RC.
And I'm a fan of just reprogramming it :eek:
The Lucas
16-03-2006, 22:57
What works very nicely is to use a pot on the OI, saving it's vale into a variable to set you auto-mode. Lets you change the auto from the player station, and is so much more convenient.
We use two 6-position rotary switches on OI. They are nicer than pots because they have definite positions, but they require a bit of soldering to attach the resistors. Digital inputs on the OI are so precious, I hate to waste 5 of them on Auto switches.
SoftwareBug2.0
16-03-2006, 23:47
We use two 6-position rotary switches on OI. They are nicer than pots because they have definite positions, but they require a bit of soldering to attach the resistors. Digital inputs on the OI are so precious, I hate to waste 5 of them on Auto switches.
Digital inputs are indeed precious. We have basically have what you described on the robot itself: 2 10-position rotary switches, each of which involve soldering the 10 resistors together in close quarters.
Last year, my team used a bank of dip switches that went to digital inputs, plus one three-position switch wired to an analog input, which we used to denote the starting position.
Longhornchris04
30-03-2006, 23:32
Well, our robot was very simple this year (rookie year, we followed the KISS philosophy), so we had the digital inputs to spare, but for next year I'm suggesting the following.
On the OI, have a couple of fixed position analog or digital inputs used to select the autonomous mode and a "Lock Autonomous Mode Switch." After the robot is powered, have the robot placement team signal the OI team to "Lock" the autonomous selection. One note on this is the "Lock Switch" will probably need an LED and an "Arming Cover" The OI has 16 analog and 16 digital inputs, so this shouldn't be a problem. This would require 1 digital (lock switch) and 2+ analog (start position and drive pattern??) inputs.
If we go this way though we will test the heck out of it using a competition port dongle and have a startup checklist... which reminds me. There are 2 kinds of people: Those with checklists, and those that will soon have checklists.
StephLee
01-04-2006, 10:23
Our programmers got really tired of having to upload a new program into the robot in between matches, so they came up with this (http://www.team1629.com/AutoModeSwitch/tabid/61/Default.aspx). I think we have around 99 autonomous modes now, which we can switch between right before the match, while the robot is on the field. It helped us out a lot during the finals at Chesapeake. What do you guys think?
chrisinmd
01-04-2006, 10:29
That's a really nice product!
I made something similar this year for our robot, but it's not as neat and compact as that one is. I used short lengths of wire between the connectors and the dip switch. We used it with fair success at Chesapeake as well, I think we had about 5 different auto modes, hopefully we'll get some more programmed before nats!
-Chris
ewankoff
02-04-2006, 22:49
we also used a bank of dip switches and came up with at least ten autonomous modes for them. the all the modes and positions were labled in binary.
we also used a bank of dip switches and came up with at least ten autonomous modes for them. the all the modes and positions were labled in binary.
Yeah, I saw your chart of all the dip switch combinations sitting in your pit area.
Team 95 used a combination of a rotary pot (for strategy) and dip switch, although we used the same settings 95% of the time (we were usually the best shooter on the alliance, and could get the position closest to the goal).
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.