|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools |
Rating:
|
Display Modes |
|
#20
|
|||
|
|||
|
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? |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|