View Single Post
  #3   Spotlight this post!  
Unread 25-07-2010, 22:28
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Re: Adding Scripting support to Java

What i mean by scripting is the following to find and kick a ball:
Code:
BEGIN autonomous
var balls = 2
go forward 0.25 impulse
loop termcon=enabled:
  if kickersense == true:
    stop
    kick hard
    if balls == 0:
      gtfo this loop
    resume course and speed
END autonomous
I want to use some macros that call java functions, much like one would create python bindings for C programs.

I would also have it use sensors, but only the sensors i allow, for instance the boolean sensor that we put by the kicker that detects the existence of a ball before you kick.