Go to Post Your primary job is not to build the most technically advanced robot, but build the best possible team. - PayneTrain [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-01-2016, 20:10
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
Cool idea for autonomous on the fly

I don't know if this is possible or not but here is my idea.

What if there was a way to "code" your autonomous on the fly using your controller right before the match starts just like how you can use sendable chooser.

An example could be this:
Suppose your robot was made to go through the low bar and you have multiple bots on your team that want want to go through it during autonomous. Using this method all the members can go through the low bar without crashing into each other. By "coding" their autonomous on the fly based on the position they placed their bot when setting up.




Is this possible?
Reply With Quote
  #2   Spotlight this post!  
Unread 14-01-2016, 20:30
LDiDomenico LDiDomenico is offline
The Walking Blue Alliance
FRC #2512 (Duluth East Daredevils)
Team Role: Mentor
 
Join Date: Mar 2013
Rookie Year: 2012
Location: Duluth, Minnesota
Posts: 95
LDiDomenico will become famous soon enoughLDiDomenico will become famous soon enough
Re: Cool idea for autonomous on the fly

I think this thread might have what you are looking for.

http://www.chiefdelphi.com/forums/sh...d.php?t=136151
__________________

2015 MSHSL State Championship Winners with 3130 and 4215
2015 Hopper Division Winners & Einstein Finalists with 987, 2826, and 4265
2015 Northern Lights Chairman's Award Winners
Finalists at the 2015 Central Illinois Regional with 4143 and 4212
Finalists at the 2015 Northern Lights Regional with 5172 and 4786
Winners of the 2013 Midwest Regional with 71 and 2709
Winners of the 2012 Minnesota North Star Regional with 111 and 4226
Reply With Quote
  #3   Spotlight this post!  
Unread 14-01-2016, 20:37
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: Cool idea for autonomous on the fly

Quote:
Originally Posted by LDiDomenico View Post
I think this thread might have what you are looking for.

http://www.chiefdelphi.com/forums/sh...d.php?t=136151
It's almostttt what I was looking for. If I were to use that I need the ability to assign different .csv recordings to different joystick buttons and use sendablechooser or something to select one and go with it. You think that would be possible?
Reply With Quote
  #4   Spotlight this post!  
Unread 14-01-2016, 20:42
TimTheGreat's Avatar
TimTheGreat TimTheGreat is offline
ArchdukeTim
FRC #1418 (Vae Victis)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Falls Church
Posts: 236
TimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura about
Re: Cool idea for autonomous on the fly

Very doable. Especially with smartdashboard. Just have the autonomous read the wait time from smartdashboard, then drive under. The first time has 0, second have 5, and the third team 10 seconds.
__________________
There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.



2012 - Gracious Professionalism - Greater DC
2014 - Regional Finalist - Virginia | Industrial Design - Virginia | Regional Finalist - Greater DC
2015 - Innovation in Control - Greater DC
2016 - District Event Winner - VAHAY | Innovation in Control - VAHAY | District Event Winner - MDBET | Industrial Design - MDBET | District Champion - CHCMP | Innovation in Control - CHCMP
Reply With Quote
  #5   Spotlight this post!  
Unread 14-01-2016, 20:43
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 542
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: Cool idea for autonomous on the fly

The link posted and the topic of this thread are two different issues. If you'd like to be able to select SmartDashboard options through your controller, than you would have to make your own widget that interacts with JInput in order to get the behavior desired.

If you are using SFX, than see here https://wpilib.screenstepslive.com/s...rol-using-java to create a custom widget

If you are using smartdashboard, see here http://firstforge.wpi.edu/sf/wiki/do...iki/Extensions

(I'd recommend creating a custom dashboard using Swing and networktables.jar but that would be decently difficult. Not as difficult as creating a custom widget, though).
__________________
FRC Team 1684 - Head Programmer (2013-2016)
FRC Team 5460 - Programming Mentor (2015-2016)

FIRST in Michigan - Technical Crew (2015-continuing)
Reply With Quote
  #6   Spotlight this post!  
Unread 14-01-2016, 21:07
TimTheGreat's Avatar
TimTheGreat TimTheGreat is offline
ArchdukeTim
FRC #1418 (Vae Victis)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Falls Church
Posts: 236
TimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura about
Re: Cool idea for autonomous on the fly

If you change to python you can use a package called pynetworktables2js which allows you to create a GUI in javascript that works with networktables(smartdashboard). You can take a look at our old UI at our UI github page
__________________
There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.



2012 - Gracious Professionalism - Greater DC
2014 - Regional Finalist - Virginia | Industrial Design - Virginia | Regional Finalist - Greater DC
2015 - Innovation in Control - Greater DC
2016 - District Event Winner - VAHAY | Innovation in Control - VAHAY | District Event Winner - MDBET | Industrial Design - MDBET | District Champion - CHCMP | Innovation in Control - CHCMP

Last edited by TimTheGreat : 14-01-2016 at 21:15.
Reply With Quote
  #7   Spotlight this post!  
Unread 14-01-2016, 21:54
blueboss blueboss is offline
Registered User
FRC #4904
 
Join Date: Jan 2016
Location: Bay Area, California
Posts: 4
blueboss is an unknown quantity at this point
Re: Cool idea for autonomous on the fly

This seems very nice in theory, but I don't believe the input had to be via controller. The idea of recreating the motion on a controller during autonomous is great, but I feel like it's too susceptible to human error (this is referencing the other thread linked: http://www.chiefdelphi.com/forums/sh...d.php?t=136151)
In your scenario, coding it with a small and specific amount of lefts or rights and one up seems so easy to code that you wouldn't need to set it up with a joystick/controller; you could simply have an electronic interface in which you specify the defense number you're crossing and your initial position. A complex path is difficult to maneuver perfectly with a joystick, and the simple choice of a defense is easy enough to not need a controller.
Reply With Quote
Reply


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 16:21.

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