|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Intresting Autonomous
Quote:
If you do this type of programming in Labview, I suggest that every time you make a multiplier in a function you first make a knob on the front panel so that you can "tweak" the outcome of the function. Then when you are done go to the block diagram, right click on the knob or dial and select "change to constant". Doing this will ensure that the numbers you have chosen in your functions always stay the same. If you leave them as a dial they will reset themselves. We are currently working on getting the robot to move out on to the field 3 seconds initially, and then start tracking. Ideally we would have had a "field position switch" which would allow us 3 different autonomous modes, but unfortunately a firmware update disabled this ability for us. Also unfortunate was that we already had the control panel made with the switch mounted. I wrote a ton, but I hope that lets you in on the "secret" ![]() |
|
#2
|
|||
|
|||
|
Re: Intresting Autonomous
Quote:
Greg McKaskle |
|
#3
|
|||||
|
|||||
|
Re: Intresting Autonomous
Switches on the DS side can still be read and used to select Autonomous modes. The difference is that they now cannot be read in Autonomous/Enabled mode. Read them in Autonomous/Disabled and cache the values for use during Autonomous/Enabled. Also, there are reports that the values return incorrectly from the last cycle of Autonomous Disables, so make sure your code has a way of dealing with this.
|
|
#4
|
|||
|
|||
|
Re: Intresting Autonomous
Quote:
It's hard to handle this in the LabView Basic Framework, but is pretty straightforward in the Advanced Framework - attached is an example Disabled.vi for the advanced framework that shows this, hope it's useful! The AutonMode.vi also attached is just a simple "functional global" variable. Autonomous Independent just reads the cached value. Ron Team 2607 - software mentor |
|
#5
|
|||||
|
|||||
|
Re: Intresting Autonomous
Quote:
In either LV or C++ if you call IsDisabled() or its LabView equivalent before testing your Auto Selection switches you should be fine. My team has used two 6-position rotary switches to select our auto routines for the past few years. They give us 36 slots (usually enough even for our team) using only 2 analog ins as opposed to 5+ digital ins (usually need those for other controls). [Back on topic] Dawgma (1712) camera tracked and scored 4 times (hitting all 7 balls 3 times) in auto. Even when they didn't score in auto they often scored immediately afterward[/Back on topic] Last edited by The Lucas : 05-03-2009 at 11:36. |
|
#6
|
|||||
|
|||||
|
Re: Intresting Autonomous
One of our neighbor teams is using a ten-turn pot with a fancy readout on their Driver Station as a mode selector. I think their code is able to distinguish 100 different settings.
|
|
#7
|
|||||
|
|||||
|
Re: Intresting Autonomous
Cool idea, was that 007 or 53? I've only started to play with the DS display. I dont think I would ever switch to a scheme that required feedback from the cRIO. I am comfortable with being able to yell at the comp team in the queue "Run C-3!" and they can dial that in immediately w/o turning on the robot. However, maybe I will use this great idea to print out what the auto routine does on the DS so they can confirm (w/o looking at their cards). Also if I need more auto selections I can always put more resistors on the rotary switches (they can expand to 8 or 10 different positions), 6 was just chosen because there are 6 starting positions (lucky we didnt need to use it give red vs blue target to the camera else we would be out by now).
|
|
#8
|
|||||
|
|||||
|
Re: Intresting Autonomous
Quote:
They weren't using the DS display when I saw their system. The "fancy readout" is a very nice knob with special gearing and a mechanical attachment to the shaft. They're common in applications using ten-turn pots. Here's one such device: http://parts.digikey.com/1/parts/746...-011-1-11.html |
|
#9
|
|||||
|
|||||
|
Re: Interesting Autonomous
If anyone gets a chance to watch the NYC Regional webcast (Saturday & Sunday), check out our auto-mode.
We're very proud of it, & it's completely intergrated into the drive system of the robot using a gyro as an assist, & is very cool in my opinion, but I'll let you all decide. Comments welcome if you see it btw! Thanks! |
|
#10
|
|||
|
|||
|
Re: Intresting Autonomous
Quote:
I haven't looked at the DS packets to see whether the DS is actually reporting the state to be "enabed" or "disabled" when this happens, but we plan to check into it - it's a fun way to teach the kids about comm protocols and network analysis. [EDIT: For anyone interested, after a quick glance at the LV WPI library code, it seems clear that the DS is actually reporting the state as enabled, the framework just intentionally runs the disabled vi an extra time to allow for clean up. So not a "race condition" but something to be aware of in the framework. You'll see what I'm talking about in the "Get Competition Mode.vi" which the framework uses to figure out what mode to run] Ron Team 2607 - software mentor Last edited by rrossbach : 05-03-2009 at 14:45. |
|
#11
|
||||
|
||||
|
Re: Intresting Autonomous
It seems to me that, owing to symmetry, there are only three starting positions, so that with six autonomy choices a robot could have two options for each starting position.
|
|
#12
|
||||
|
||||
|
Re: Intresting Autonomous
My team has been searching for analog switches of the variety you speak of, but we haven't been able to locate anything that we were certain was what we were looking for. Could you please post a link to somewhere that we could purchase those switches? Thanks!
|
|
#13
|
||||||
|
||||||
|
Re: Intresting Autonomous
Quote:
It's also common to take a rotary switch and solder resistors in series, between each terminal, to turn it into a rotary potentiometer. |
|
#14
|
|||||
|
|||||
|
Re: Intresting Autonomous
Quote:
http://search.digikey.com/scripts/Dk...me=451-1027-ND They have 12 positions but we only use 6 positions and use 2 of them (6 * 6 = 36 auto selections, we rarely need more than that ). Joe's suggestion of a pot with 10 detents is also a good idea. They are cheaper and much easier to solder. We'll stick with the rotary switches to avoid the very minor risk of setting them in between detents. Another interesting new feature to use for auto mode selection is the Driver Station LCD. During Disabled mode, we pint a short name for the Auto routine on the LCD screen so it can be confirmed. |
|
#15
|
||||
|
||||
|
Re: Intresting Autonomous
Thanks a ton, both of you!
Expect to see 862 at the Championship, sporting a full compliment of autonomous modes. ![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Autonomous | Whitetail Freak | Programming | 5 | 14-02-2009 07:35 |
| pic: I drove 173 miles after i filled up my gas tank! Hmm Intresting? | R.J. | Chit-Chat | 10 | 07-01-2007 16:19 |
| A intresting question | Jeremy | Chit-Chat | 9 | 19-02-2004 12:48 |
| R.A.G.E. Autonomous? | DarkJedi613 | Regional Competitions | 7 | 17-03-2003 21:33 |
| Intresting Article | Kyle Fenton | Chit-Chat | 0 | 21-11-2001 17:02 |