Go to Post The next hint will be game hint #3. Everyone will go crazy trying to figure out which of the fake hints was hint #2. - Joe Ross [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 Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 09-03-2015, 16:55
Shaif Shaif is offline
Registered User
FRC #5580 (SQUAD)
Team Role: Programmer
 
Join Date: Mar 2015
Rookie Year: 2015
Location: Toronto
Posts: 17
Shaif is an unknown quantity at this point
Re: Need A Little Help On How To Make Autonomous Switcher

Command Based seemed a little intimidating for a rookie team like us with little man power, so we just did what we could with Iterative and we stayed as far away as possible from smart dashboard only because we didn't want to mess up anything that was already functional and not know how to fix it in time for the competition. But maybe now would be a good time to try these features out and learn how to use them to mentor the team for next year.
  #2   Spotlight this post!  
Unread 09-03-2015, 19:25
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,058
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: Need A Little Help On How To Make Autonomous Switcher

Quote:
Originally Posted by Shaif View Post
Command Based seemed a little intimidating for a rookie team like us with little man power, so we just did what we could with Iterative and we stayed as far away as possible from smart dashboard only because we didn't want to mess up anything that was already functional and not know how to fix it in time for the competition. But maybe now would be a good time to try these features out and learn how to use them to mentor the team for next year.
That's ironic given command based is supposed to be "easier to use".
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
  #3   Spotlight this post!  
Unread 10-03-2015, 10:34
gr8dragon's Avatar
gr8dragon gr8dragon is offline
Registered User
AKA: Parth Patel
no team
Team Role: Alumni
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Toronto,Canada
Posts: 39
gr8dragon is a glorious beacon of lightgr8dragon is a glorious beacon of lightgr8dragon is a glorious beacon of lightgr8dragon is a glorious beacon of lightgr8dragon is a glorious beacon of light
Re: Need A Little Help On How To Make Autonomous Switcher

In the past I know teams to have used the disabled routines in the C++/Java libraries in which they set autonomous state based on joystick button press. If joystick 1 is pressed then autonomous 1 is run and so on. Its simple and doesn't require any new hardware. I do believe this is still legal because you would do this before the MC does the countdown, and autonomous actually starts. Make sure the robot is connected fully to the driver station in order for this to actually work.
__________________
FRC 2013 World Champions 1241 (1477, 610) Thank you Team 1241 for letting me be a part of your wonderful team.
FRC 2010 GTR Regional Chairmans (188)
FRC 2009 Finger Lakes Regional Champions 188 (1507, 174)
  #4   Spotlight this post!  
Unread 12-03-2015, 20:46
JefferMC JefferMC is offline
Registered User
AKA: Jeff Corbett
FRC #1319 (Flash)
Team Role: Mentor
 
Join Date: Nov 2012
Rookie Year: 2005
Location: United States
Posts: 44
JefferMC will become famous soon enough
Re: Need A Little Help On How To Make Autonomous Switcher

We have used Sendable Chooser, but had issues with stability with SmartDashboard usage that year and quit using SmartDashboard all together.

Last year, I believe it was, we used the DigitalInput switches on the IO page the DriverStation software as switches to select an autonomous program. But those went away this year. Pity.

We are using Preferences this year, but are having problems with the preference values getting stored in the file when set in SmartDashboard. So... we've been editing the Preferences file on the DS computer, then copying to the Robot with FTP. I'm debating going back to a Sendable Chooser, or using a Sendable chooser to set the Preference.

Before SmartDashboard, et al, we would use a series of switches to select the number of the program we wanted to run.

Anyway, regardles of which of these mechanisms we've used, the chosen routine gets identified at RobotInit or AutonomousInit (depending on the actual mechanism), and executed at the appropriate time.

RE: Command Based robot vs Interative. If your robot needs to do two things at once, Command Based is the way to go. Otherwise, Iterative is okay.

Last edited by JefferMC : 12-03-2015 at 20:48.
  #5   Spotlight this post!  
Unread 12-03-2015, 22:21
Shaif Shaif is offline
Registered User
FRC #5580 (SQUAD)
Team Role: Programmer
 
Join Date: Mar 2015
Rookie Year: 2015
Location: Toronto
Posts: 17
Shaif is an unknown quantity at this point
Re: Need A Little Help On How To Make Autonomous Switcher

Quote:
Originally Posted by JefferMC View Post
We have used Sendable Chooser, but had issues with stability with SmartDashboard usage that year and quit using SmartDashboard all together.

Last year, I believe it was, we used the DigitalInput switches on the IO page the DriverStation software as switches to select an autonomous program. But those went away this year. Pity.

We are using Preferences this year, but are having problems with the preference values getting stored in the file when set in SmartDashboard. So... we've been editing the Preferences file on the DS computer, then copying to the Robot with FTP. I'm debating going back to a Sendable Chooser, or using a Sendable chooser to set the Preference.

Before SmartDashboard, et al, we would use a series of switches to select the number of the program we wanted to run.

Anyway, regardles of which of these mechanisms we've used, the chosen routine gets identified at RobotInit or AutonomousInit (depending on the actual mechanism), and executed at the appropriate time.

RE: Command Based robot vs Interative. If your robot needs to do two things at once, Command Based is the way to go. Otherwise, Iterative is okay.
So what do you think the people in the video that i attached in the original post were doing?
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


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

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