View Single Post
  #4   Spotlight this post!  
Unread 23-10-2012, 17:30
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Autonomous scripting language

Very interesting.

I believe this is the first completely custom scripting language I've seen for FRC that attempts to provide a full programming environment - You have loops and conditional blocks and everything.

Our system executes commands in sequence, with numeric arguments. The majority of the code is LabVIEW native - We simply have a high-level script which guides the high-level actions (such as drive_straight distance speed, stop, turn heading speed, drive_straight distance speed, etc). This closely mirrors the C-function call system we use in VRC, where functions do all of the work and we call them in order with arguments.

I have also seen a system which are time-based - A command will be given with absolute or relative start/stop times, and the system schedules them all, but that system also had the majority of the core code in native blocks instead of the script.

It'd be interesting to debate the merits of putting more or less code into the scripts vs the native functions.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack