Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Multiple Autonomous Programs (http://www.chiefdelphi.com/forums/showthread.php?t=132592)

topgun 20-02-2015 16:05

Re: Multiple Autonomous Programs
 
When would one actually select the autonomous routine desired when using the SmartDashboard? Do you do it after connecting into the FMS but before you have to step behind the line, or in the queue line, or in the pit before leaving for the match?

I am unclear as to when the autonomous mode selection would be made given that we need to connect into the FMS.

Thanks.

rich2202 20-02-2015 17:15

Re: Multiple Autonomous Programs
 
Quote:

Originally Posted by topgun (Post 1447778)
When would one actually select the autonomous routine desired when using the SmartDashboard?

You can select and change your mind up until you have to step back.
In Autonomus Init, you read the input, and setup Autonomus to execute accordingly.

topgun 23-02-2015 12:21

Re: Multiple Autonomous Programs
 
So you setup the robot and power on on the field. In the meantime one member of the drive team is setting up the drivers station. When connected to the FMS, then you can select the autonomous mode?

Mark McLeod 23-02-2015 12:31

Re: Multiple Autonomous Programs
 
We make our Dashboard selectable autonomous choice in the pit.
The robot code just reads the Dashboard values whenever it is running and connected via network to the Driver station.

FMS doesn't have anything to do with any of this.
FMS only tells the Driver station what mode (Disabled/Enabled/Teleop/Auto) it wants it to be in.

rich2202 23-02-2015 12:35

Re: Multiple Autonomous Programs
 
Quote:

Originally Posted by topgun (Post 1448708)
When connected to the FMS, then you can select the autonomous mode?

Yes, when your robot connects and starts running code, it posts to the Driver's Station (robot init). At that point, the input field can be edited. Once Autonomous Starts (autonomus init), the robot reads the input field and sets up parameters, and runs the appropriate code (autnomous periodic).

In theory, you can do this while tethered in the que (after you have discussed with your alliance members who is doing what, who is starting where). However, in the event of a last minute change (problem with robot on the field), you can change up until the start of Autonomus.

This is most helpful during practice matches when there can be a lot of changes on the field. By the time you get to qualification matches, you have a good idea going onto the field who is doing what.

MamaSpoldi 23-02-2015 16:28

Re: Multiple Autonomous Programs
 
Quote:

Originally Posted by MrTechCenter (Post 1427431)
We used the driver station digital inputs to select our autonomous mode last year. We originally had a physical 3-stage switch on our driver station which was wired into the Cypress which was connected to our driver station laptop, however, our Cypress stopped working so we literally just clicked an individual digital Input on the driver station, under "D I/O" and referenced each digital input in our autonomous code, so different digital inputs would correspond to a different auton mode. I mean....it worked...

We did this last year too, but the digital inputs has been removed from the driver station this year. :( So we are back to a 3-bit digital switch plugged into 3 digital ports where we read them and "assemble" the selected number chosen.

I must say that I like the idea of being able to set something in disabled mode but it is risky in case they are having trouble getting comms and are not given time to update/select the desired value. So... I guess we will stick with our old switch for now. :]

Beaker 23-02-2015 17:35

Re: Multiple Autonomous Programs
 
We have an autonomous that uses scripts that we SFTP over to the roboRIO. When we connect to the robot the dashboard displays a textbox under our autonomous tab with all of the file names and puts asterisks around the one which we have selected.

When selecting files before a match, the manipulator is able to use a special button combo to scroll through the list.

It's basically a TV guide, except for autonomous files.

rich2202 23-02-2015 19:39

Re: Multiple Autonomous Programs
 
Quote:

Originally Posted by MamaSpoldi (Post 1448839)
I must say that I like the idea of being able to set something in disabled mode but it is risky in case they are having trouble getting comms and are not given time to update/select the desired value. So... I guess we will stick with our old switch for now. :]

Not that risky. They have to get your robot to establish communications before they can start the match. Once com is established and the robot starts running code, the Smart Dashboard is active. For us, it is one value in a field that changes.


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

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi