- Install Nodejs
- Install PROS
- Download this sim-clawbot repo.
- Download the floods-of-joy repo
- In your favourite command line,
cd
into the floods-of-joy repo directory. - Connect the Vex Cortex to the computer.
- Type
pros mu
to compile and upload the robot's program onto the cortex.
- In your favourite command line,
cd
into the sim-clawbot repo directory. - Connect the Vex Cortex to the Joystick, and connect the Joystick to the computer.
- To test and make sure the robot's program works, type
pros terminal
and fiddle around with the joystick. The terminal's readings should respond to your actions. Now close thispros terminal
by pressing Control-C. - Next, we're going to pipe this output (you just saw) into a new server. But, first, see which one works:
node server.js
ornodejs server.js
. Then, close the server by pressing Control-C. Now typepros terminal | node server.js
orpros terminal | nodejs server.js
(whichever one works). - Open up your web browser and load
http://localhost:80
- If everything works well, enjoy!
Once you have downloaded a PROS program to a cortex, you may realise that RobotC will spill out errors when you try to download a RobotC code back into the cortex. That's expected, and that's okay. You'll just need to do an extra step:
To return back to using RobotC, you'll need to re-upload the cortex's firmware by "updating" it. As of writing, this can be found in Menu > Robot > Download Firmware > Automatically Update Vex Cortex. Make sure you plug in your cortex to the computer directly, using an orange USB A to A.