Go to Post Where's the "drill enough weight holes so we're barely under 120lbs" option? ;-) - AlecMataloni [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 03-05-2014, 10:38 AM
Toa Circuit's Avatar
Toa Circuit Toa Circuit is offline
Thaddeus Maximus
AKA: Thad Hughes
FRC #4213 (MetalCow Robotics)
Team Role: Leadership
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Shirley, IL
Posts: 131
Toa Circuit is an unknown quantity at this point
Multiline SmartDashboard Input?

Title says it. Is there anyway to have a multiline smartdashboard input? (I.E. as a way to do autonomous scripting instead of uploading a text file via FTP)

Or if there's a way to do this without using SmartDashboard, that still is quick, editable on the fly, and not complicated for the end user, that would rock.
I guess I _could_ put in ~20 smartdashboard entries... but that seems acky.
__________________

2012 Head of Programming and Electrical
2013-14 Overall Team Captain and Programming Head
2012-14 Mentor of FLL Team Power Surge
2014 Dean's List Finalist
2014 CIR Xerox Creativity Award
Webpage

Last edited by Toa Circuit : 03-05-2014 at 04:34 PM.
Reply With Quote
  #2   Spotlight this post!  
Unread 03-10-2014, 10:29 AM
themagic8ball themagic8ball is offline
Registered User
AKA: Mike Weinand
FRC #0537 (Charger Robotics)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Wisconsin
Posts: 112
themagic8ball is on a distinguished road
Re: Multiline SmartDashboard Input?

What types of things are you scripting? Is it truly on the fly or are there a few different autonomous modes you are trying? If it is only a few, you can look into just having radio button selection of autonomous mode with the SendableChooser: http://wpilib.screenstepslive.com/s/...smartdashboard.

Otherwise, you may be able to just make the textbox bigger (longer) and make a custom shorthand. d(60), t(45), f could be input for drive 60 inches, turn 45 degrees, and fire. Not sure how complicated you are looking to get though.
__________________
Reply With Quote
  #3   Spotlight this post!  
Unread 03-11-2014, 08:09 AM
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: Multiline SmartDashboard Input?

It.. gets.. complicated.

For Kettering this year, I made a custom text editor that would allow me to program auton and load without deploying to the cRIO (510 auton points 50 points above 2nd place). It would compile the text in the editor to a binary form than send it to the dashboard through a single SD line

so something like this

Code:
if inTheCenter //targeting
    shoot at 1 for 1 //shoot at speed 1 for 1 second
    after 2
         driveForward at 1 for 1
else
    driveForward at 1 for 1 //drive forward at fulslpeed for 1 second
    after 5
         shoot at 1 for 1
endif
the binary would compile to something like

Code:
?11:(12:1:1:0:(13:1:1:3:^:(13:1:1:0:(12:1:1:5
This was originally intended to be a full binary format (not an ASCII pull) but i got fed up with Java ME's implementation of binary string reading

?11 signifies if, (12 signifies action (, shoot (12), at speed 1 for 1 second at 0 seconds... (13 signifies drive, etc.

Can't open source anything because its still competition season but just giving ideas!
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 09:19 AM.

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