Skip to content

gluxon/DriverStation.js

Repository files navigation

DriverStation.js

An Open Source FRC Driver Station.

DriverStation.js DriverStation.js DriverStation.js

Downloads

v0.4.4

Packages
Packages are avalible here: http://gustavemichel.com/OSCPDSPackages/.

  • Windows
  • Mac
  • Linux32 (NLinux32 Contains Missing libudev.so.0 Fix)
  • Linux64 (NLinux64 Contains Missing libudev.so.0 Fix)
  • .NW Package (All Platforms, Requires you install Node-Webkit 0.8.6)

Compile from Source

Compiling from source can be found in the node-webkit documentation. You still have to run npm install in the cloned git repository before packaging. Otherwise, DriverStation.js will be unresponsive because of JavaScript crashing from dependency errors.

$ npm install

After installing the required dependencies, additional actions will need to be taken to obtain a functional application.

Compiling node-gamepad

Due to node-gamepad using native files and the use of node-webkit instead of node, the pre-installed native may not work, below is the process for compiling the native from the Application Directory.

$ npm install -g node-gyp nw-gyp node-pre-gyp # May require Sudo
$ cd node_modules/gamepad/
$ node-pre-gyp build --runtime=node-webkit --target=0.8.6

The Additional Platform Specific dependencies for compiling node natives can be found on the node-gyp github repo README.

Linux

If your system's Python 2.7 executable isn't just called python you can use the --python=<executable name> flag.

Windows

This process was rather difficult, taking nearly 2 weeks to resolve issues, below is a step by step of what I did to complete this task (in additon to the above general instructions).
Note: I started with a clean install of Windows 7 Home Premium 64-bit.

Running Unpackaged

Run in the Application Directory.

$ ./node_modules/nodewebkit/nodewebkit/nw ./

Repairing Missing libudev.so.0

Since node-webkit is installed in node_modules, the sed commq and can be used fairly easily to correct this issue. I assume you are starting at the Application Directory.

$ cd node_modules/nodewebkit/nodewebkit/
$ sed -i 's/udev\.so\.0/udev.so.1/g' nw

License

DriverStation.js is distributed under the MPL 2.0.

Changelog

0.4

These changes are from Gustave Michel III.

  • Support for Joysticks Added
  • Keybinds for F1-Enable, Enter-Disable, and Spacebar-EStop
  • Joystick Setup section to re-order Joysticks
  • Joystick Identification LEDs. Light when any button is pressed.
  • Currently Non-function Toggle for DriverStation Network Protocol

0.3

These changes are from FRC 2539, the Krypton Cougars. Many thanks to them!

  • Add reboot cRIO button
  • Robot Code detection and control to reset detection

0.2

  • Working enable/disable of robot
  • Display of voltage, userLcdData, and timer
  • Gray out trigger when not connected to robot
  • New about tab to credit contributors
  • Debugging mode added to the about tab
  • Link hooking to open hyperlinks in system browser
  • Team Number input added to setup tab.
  • HTML5 Web Storage now used to contain settings

0.1

  • Initial Release