Quote:
Originally Posted by michaelwm
Have an intuitive software design- We based our JS design off of the DOM webdesign convention. Driving a motor in JS is as simple as
Code:
robot.talon.port3.set(1);
(Subject to change as we refine our programming model) - Aside from being interpreted in real time, JS is the most common language taught in high school programming courses. If you ever want new programmers, an intuitive design based on what students already know (DOM) will attract new programmers like crazy.
|
If you're talking about intuitive design, Talon's don't have 3 ports - PWMs do. It'd get particularly sticky if you had to do Talon SR vs SRX vs SP. I'd recommend doing robot.pwm.port3.set(1), then at instantiation determine what port 3 actually is and make sure that object has a set() method.