Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Open Source Cross Platform Driver Station; Ready for Testing (http://www.chiefdelphi.com/forums/showthread.php?t=131393)

Ben Wolsieffer 09-12-2014 18:21

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.
which might be due to only having the Windows 8 SDK, not Visual Studio.

This is why I use Linux. :)

gixxy 10-12-2014 09:02

Re: Open Source Cross Platform Driver Station; Ready for Testing
 
Quote:

Originally Posted by lopsided98 (Post 1412570)
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.
which might be due to only having the Windows 8 SDK, not Visual Studio.

This is why I use Linux. :)

I am using a Windows 7 VM and it is giving me issues with being unable to find stdbool.h Isn't that just lovely...

Here is what the node-gyp readme has to say:
https://github.com/TooTallNate/node-gyp#installation
Code:

On Windows:

    Python (v2.7.3 recommended, v3.x.x is not supported)
    Windows XP/Vista/7:
        Microsoft Visual Studio C++ 2010 (Express version works well)
        For 64-bit builds of node and native modules you will also need the Windows 7 64-bit SDK
            If the install fails, try uninstalling any C++ 2010 x64&x86 Redistributable that you have installed first.
        If you get errors that the 64-bit compilers are not installed you may also need the compiler update for the Windows SDK 7.1
    Windows 7/8:
        Microsoft Visual Studio C++ 2012/13 for Windows Desktop (Express version works well)


x86_4819 10-12-2014 17:08

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!

gixxy 10-12-2014 18:24

Re: Open Source Cross Platform Driver Station; Ready for Testing
 
Quote:

Originally Posted by x86_4819 (Post 1412870)
Just ran it with a real-life FRC robot from my laptop running Arch. Works flawlessly, I could find no issues!

Here is the verbal component of my reaction:
Quote:

WHOOOO!!! WHOO HOO! YEAH!!!! It Worked!!!! I'm Awesome!!!! Dude, come read this post!!!!! My DriverStation works, at least on Linux!!!!! OH HELLS YEAH!
I may be a little excited :p

x86_4819 10-12-2014 19:17

Re: Open Source Cross Platform Driver Station; Ready for Testing
 
Congradulations! You now have exactly 23 days to benefit from your success!

gixxy 11-12-2014 07:58

Re: Open Source Cross Platform Driver Station; Ready for Testing
 
Quote:

Originally Posted by x86_4819 (Post 1412916)
Congradulations! You now have exactly 23 days to benefit from your success!

Yes, but at least when the 2015 protocol is released we will be ready to utilize it in the front-end. (Pull the latest version of the DS and look at the setup tab!)

Ben Wolsieffer 12-12-2014 19:27

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.

gixxy 12-12-2014 22:45

Re: Open Source Cross Platform Driver Station; Ready for Testing
 
Quote:

Originally Posted by lopsided98 (Post 1413694)
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.

That isn't functionality that I wrote, but it SEEMS to be an issue with the form submission resetting the entire Application. I have written a potential fix and pushed it to the github, please try it out. Thanks.

Ben Wolsieffer 13-12-2014 12:24

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.

gixxy 14-12-2014 07:59

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).

gixxy 14-12-2014 15:05

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=2013
setting target architecture because I was running a 64-bit system (compiling for 32-bit) and setting which version of Visual Studios I was using. (Note, did not work setting it to 2012 or 2010, or leaving it unset)

Now 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.

x86_4819 14-12-2014 18:36

Re: Open Source Cross Platform Driver Station; Ready for Testing
 
Did you reach your limit for the day? :]

gixxy 14-12-2014 21:08

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.

gixxy 15-12-2014 00:09

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/

gixxy 12-01-2015 22:33

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


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