![]() |
Open Source Cross Platform Driver Station; Ready for Testing
Have you ever been frustrated because the FRC Driver Station only runs on Windows? That is, unless you want to put lots of effort into configuring Wine or visualizing Windows in some fashion. Or, perhaps you run Windows but hate the time it takes to install the LabVIEW runtime, how bulky it is, and the boot time of the DriverStation itself. Well, hello my fellow frustrated FRC Driver Station user, I seek to alleviate these problems.
Introducing the improved Open Source Driver Station: ![]() ![]() I have forked the project created by Gluxon, added Joystick Support, Bound the F1, Enter, and Space keys to Enable, Disable, and Estop, and Added a Joystick Setup section to the Setup tab to select Joystick order. I realize this sounds as if it is ready to go, except that I have a problem, NONE OF IT IS TESTED... I am a college student and do not have access to an FRC robot for actual testing. This is where the Chief Delphi (and FRC in general) community comes in. While I do not currently have the resources (a Windows or Mac machine) to put together packages for use other than on Linux, anyone who knows a little about Node and Node-Webkit (I managed to learn in the 5 days I worked on this) should be able to get the running fairly easily. Packages will be made eventually though, it will just take some time... So, I am reaching out to you guys in search of people willing to test and give feedback on what needs to be done to get the Open Source Cross Platform Driver Station in a usable state, preferably before January, so it can be used for testing actual robots during the season. Github: DriverStation.js EDIT: As Seen on the Nation Wide Local Hack Day Live Stream! @ 5:23:50 https://www.youtube.com/watch?v=BSFfR7O-Z3I |
Re: Open Source Cross Platform Driver Station; Ready for Testing
I am in the same boat as you, despising the current restrictions placed on official frc software, and this seems like a good step in the right direction. One thing that you might want to look into is that the DS protocol is changing for 2015, rendering current implementations incompatible. See http://www.chiefdelphi.com/forums/sh...d.php?t=131048
|
Re: Open Source Cross Platform Driver Station; Ready for Testing
Yeah, I did realize that the changes to the 2015 Control System would lead to changes being required in the Node Driverstation API. Despite that, I'm confident that the old CRios and Control System will still be used for testing purposes and so the current DS protocol is still a useful thing to have implemented. If it changes alot I will probably still maintain both versions (since the difference likely won't be with the front end, but the back end Node Module.
Regardless of ANYTHING that happens though, I still want to see if I can get some teams to help test this since I cannot do it myself. (well at least not until the Winter break in 2 weeks time at the earliest). Even if the backend changes, I need to know what works and what doesn't with the Joystick System, and I can only do so much using Netcat to capture packets. |
Re: Open Source Cross Platform Driver Station; Ready for Testing
I think that the LabVIEW simulator environment actually uses the DS protocol directly. I could probably get a windows VM setup with that environent to do some testing with.
|
Re: Open Source Cross Platform Driver Station; Ready for Testing
Quote:
Oh x86_4819, I like you :D Yeah, anything you can get to me about it will help. Here is the current Driverstation API, written in Javascript (Well, the whole project is actually in Javascript): node-driverstation I plan to setup a VM soon, but I am not sure how soon I will have the time, or a license key, to do it.... |
Re: Open Source Cross Platform Driver Station; Ready for Testing
I have been trying to run it, but I get an error when trying to run it.
Code:
Error: Cannot find module '/tmp/.org.chromium.Chromium.yCnfi2/node_modules/gamepad/build/gamepad/v1.0.2/Release/node-webkit-v0.10.5-linux-x64/gamepad.node'Code:
[christian@C-Arch gamepad]$ ./node_modules/node-pre-gyp/bin/node-pre-gyp build --runtime=node-webkit --target=0.8.6 |
Re: Open Source Cross Platform Driver Station; Ready for Testing
Yeah I haven't pushed the update readme yet, sorry.
You need to run these two commands first: Code:
sudo npm install -g node-gyp1) The gamepad module is only compatible with up to Node 0.10, the version of Node-Webkit in the AUR is 0.10, but Node-Webkit 0.10 uses Node 0.11. So you need to downgrade Node-Webkit to 0.8.6 which, if you have run the Code:
npm installCode:
sed -i 's/udev\.so\.0/udev.so.1/g' nw2) You will need to specify the --python switch for 2.7 Code:
--python=python2.7Hope that Helps, I am avalible until ~10:30 CDT (it is currently 7:11) if you still have problems. |
Re: Open Source Cross Platform Driver Station; Ready for Testing
Running
Code:
npm install |
Re: Open Source Cross Platform Driver Station; Ready for Testing
What I ran, copy and pasted out of my terminal
Code:
git clone https://github.com/gixxy/DriverStation.js.gitCode:
credits.html libffmpegsumo.so nw nw.pak nwsnapshot |
Re: Open Source Cross Platform Driver Station; Ready for Testing
I see the problem, npm install is failing with a subtle "read ECONNRESET" that doesn't stop anything, it just keeps on going. Probably due to my terrible internet at the moment, but I can try again tomorrow morning when I get decent speeds.
Copy pasted from my terminal: Code:
[christian@C-Arch OpenSourceDriverStation]$ git clone https://github.com/gixxy/DriverStation.js.git |
Re: Open Source Cross Platform Driver Station; Ready for Testing
I posted a Package for 64-bit Linux requiring the Libudev.so.1 patch, and sent you the link via Private Message.
Here is my npm install output Code:
- |
Re: Open Source Cross Platform Driver Station; Ready for Testing
Thanks, my internet won't let me download it atm, but I should be able to tomorrow morning. I should be able to send you some results then.
|
Re: Open Source Cross Platform Driver Station; Ready for Testing
I was able to get it to compile and run successfully on Arch Linux!
Here are the commands I used: Code:
sudo pacman -S --needed nodejs # Only necessary if Node.js is not already installedEverything looks like it is working, but I probably won't be able to test it on a real robot until a few days from now. If I have time, I'll try to see if I can get it to work on windows too. |
Re: Open Source Cross Platform Driver Station; Ready for Testing
I got it to compile/run, I just needed to have usable internet to do it. I was able to successfully use it with the LabVIEW simulator, and everything seems to work. All joystick axes and buttons are fully working!
|
Re: Open Source Cross Platform Driver Station; Ready for Testing
Quote:
|
Re: Open Source Cross Platform Driver Station; Ready for Testing
You were right about it being difficult to compile on Windows.
I've tried everything I can atm, but I might be able to figure something out once I can fix my Windows partition to have enough free space to install Visual Studio. I don't know if you ran into this problem but currently the build (of node-gamepad) is failing with: Code:
C:\Microsoft.Cpp.Default.props" was not found.This is why I use Linux. :) |
Re: Open Source Cross Platform Driver Station; Ready for Testing
Quote:
Here is what the node-gyp readme has to say: https://github.com/TooTallNate/node-gyp#installation Code:
On Windows: |
Re: Open Source Cross Platform Driver Station; Ready for Testing
Just ran it with a real-life FRC robot from my laptop running Arch. Works flawlessly, I could find no issues!
|
Re: Open Source Cross Platform Driver Station; Ready for Testing
Quote:
Quote:
|
Re: Open Source Cross Platform Driver Station; Ready for Testing
Congradulations! You now have exactly 23 days to benefit from your success!
|
Re: Open Source Cross Platform Driver Station; Ready for Testing
Quote:
|
Re: Open Source Cross Platform Driver Station; Ready for Testing
I just want to let you know that I ran it on robot today and it drove it perfectly.
I found a bug involving the robot code indicator though. When I reboot the cRIO from the DS (that's the only way I've been able to produce it), the robot code indicator does not come back on even though the communication indicator does. When I reset the robot code status (via the Diagnostics tab) the robot code indicator turns on, but the communication and joystick indicator turn off. The list of joysticks (in the Setup tab) is also cleared. I'm still able to enable and drive the robot when this happens so it seems to just be a UI bug. |
Re: Open Source Cross Platform Driver Station; Ready for Testing
Quote:
|
Re: Open Source Cross Platform Driver Station; Ready for Testing
I can't test it on a robot right now, but it doesn't reset the joystick indicator or the list anymore, so it might be fixed.
|
Re: Open Source Cross Platform Driver Station; Ready for Testing
Understandable. Do test it when you get a chance though.
I am so excited to hear two different fellows say it works! Now we just need it tested on a mac or two, and get it to compile at all on Windows, then test that (which anyone could do since it should be able to run on the clamshell). |
Re: Open Source Cross Platform Driver Station; Ready for Testing
Great News, I got the gamepad package to compile in Windows.
I started from a CLEAN install of Windows 7 64-bit. Installed Node.js, then installed node-gyp, nw-gyp, and node-pre-gyp globally via npm. Installed: Python 2.7.3 Installed: Microsoft Visual Studio C++ 2010 Installed: Windows 7 64-bit SDK Installed: compiler update for the Windows SDK 7.1 Installed: Microsoft Visual Studio C++ 2012 Ran Windows updates a couple of time (until the service pack was installed) Installed: Microsoft Visual Studio C++ 2013 (which unfortunately requires you to sign in with a MS Live Account) Opened my Command Prompt and Navigated to the gamepad directory. Ran Code:
node-pre-gyp build --runtime=node-webkit --target=0.8.6 --target_arch=ia32 --msvs_version=2013Now I just need a 32-bit linux compilation (which I just need to get around to) and I will have all the binaries I need to setup packages. Whoo that was an all day process. Now to Calculus Homework. |
Re: Open Source Cross Platform Driver Station; Ready for Testing
Did you reach your limit for the day? :]
|
Re: Open Source Cross Platform Driver Station; Ready for Testing
Heh. Considering I am a College Student in Engineering. Yep. More important matters to attend to. This is just my favorite pet project at the moment.
|
Re: Open Source Cross Platform Driver Station; Ready for Testing
Ok, I have compiled executables for every platform now!
OSX Windows Linux 32-bit (NLinux32 has the Missing libudev.so.0 fix) Linux 64-bit (NLinux64 has the Missing libudev.so.0 fix) as well as a .nw package without the node-webkit executable included (much smalled file size) They are all located at: http://gustavemichel.com/OSCPDSPackages/ |
Re: Open Source Cross Platform Driver Station; Ready for Testing
With basic testing completed. My code has been pulled and merged into Gluxon's main project. Well done to the both of you who helped me with testing!
The Open Source DriverStation has Joystick Support! Next up seems to be to port the 2015 network protocol and mDNS to the OSDS. Please see/reference Gluxon's thread for future OSDS info: http://www.chiefdelphi.com/forums/sh...d.php?t=118768 |
Re: Open Source Cross Platform Driver Station; Ready for Testing
Thanks!
dumb question number 6: has anyone tried this on a new roboRIO yet? Best, Martin |
Re: Open Source Cross Platform Driver Station; Ready for Testing
It shouldn't work with the roboRIO because we are still working on reverse engineering the new Network Protocol, and looking into mDNS support, but feel free to give it a shot. Just make sure you are cautious.
|
| All times are GMT -5. The time now is 22:21. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi