View Single Post
  #20   Spotlight this post!  
Unread 16-04-2015, 20:46
bthlx bthlx is offline
Registered User
FRC #3223
 
Join Date: Apr 2015
Location: Silverdale, WA
Posts: 1
bthlx is an unknown quantity at this point
Re: Javascript Robots!

Hi all, I just saw this thread and got super excited.
I've been wanting a JS alternative since I started doing FRC 3 years ago.
I was thinking it'd be fairly straightforward to implement RobotJS as a node add-on, but going with the v8 engine directly may be better. I was thinking it would be nice to use the built nide modules like fs if necessary so that was my attraction to the add-on route.
As far as syntax, couldn't you do something like:

var wpilib = require('wpilib');

var robot = new wpilib.IterativeRobot();

...

robot.liftMotor=new wpilib.Talon(1);

which is a very nodejs idiom.

Thoughts?