Go to Post No one can improve your team's situation but your team. - Ryan Dognaux [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rating: Thread Rating: 4 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 26-03-2013, 19:24
indiv0 indiv0 is offline
Code monkey
AKA: Nikita
FRC #4343 (MaxTech)
Team Role: Leadership
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Aurora, ON
Posts: 9
indiv0 is on a distinguished road
Talking FRC Driver Station on Linux!

Hello all!

Dunno is this has been done before (from searches all I find are unsuccessful attempts), but I've managed to get FRC Driver Station working under wine.

I'm running Arch Linux x64 with a 32-bit wineprefix, mono, and dotnet20sp1 installed.
I installed the 2012 NI Runtime (32-bit) and then the 2013 Driver Station, and after a bit of fiddling it now controls the robot without a hitch!

No problems so far, minus the fact that it registers 4 joysticks as being connected (I only have 2).

Just felt like sharing, in case anyone else was wondering if this was possible.

P.S.: Would this setup be legal at an FRC competition? I plan to try it out during practice day at GTRW, after checking with the judges of course. There's nothing in the rules AFAIK that says we must use Windows.
P.P.S: I wasn't sure what to do with the images so I put them on imgur. If you would like me to resize them and attach them or simply move them to another host just say so.



Reply With Quote
  #2   Spotlight this post!  
Unread 26-03-2013, 19:31
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 985
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: FRC Driver Station on Linux!

I agree that the rules do not appear to require Windows. If you do have any issues though it is likely your FTA and CSA will unable to help you and will suggest you use a loaner Classmate.
Reply With Quote
  #3   Spotlight this post!  
Unread 07-04-2013, 13:57
ILikePizza555's Avatar
ILikePizza555 ILikePizza555 is offline
Registered User
AKA: Isaac Avram
FRC #2761 (CN Ironhorse)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Fresno, CA
Posts: 63
ILikePizza555 is an unknown quantity at this point
Re: FRC Driver Station on Linux!

Oh god wine...

Better to just use windows, or make your own linux port.
__________________
PONIES ARE STOOPID MAGIK -Heavy
Reply With Quote
  #4   Spotlight this post!  
Unread 09-04-2013, 23:20
indiv0 indiv0 is offline
Code monkey
AKA: Nikita
FRC #4343 (MaxTech)
Team Role: Leadership
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Aurora, ON
Posts: 9
indiv0 is on a distinguished road
Re: FRC Driver Station on Linux!

Unfortunately my understanding of the Driver Station is not in-depth enough to do this yet, but I plan to try!
Reply With Quote
  #5   Spotlight this post!  
Unread 11-04-2013, 21:46
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,544
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: FRC Driver Station on Linux!

Quote:
Originally Posted by indiv0 View Post
I plan to try it out during practice day at GTRW, after checking with the judges of course. There's nothing in the rules AFAIK that says we must use Windows.
How did it work?
Reply With Quote
  #6   Spotlight this post!  
Unread 11-04-2013, 21:52
joelg236 joelg236 is offline
4334 Retired Mentor & Alumni
AKA: Joel Gallant
no team
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Calgary
Posts: 733
joelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond repute
Re: FRC Driver Station on Linux!

Quote:
Originally Posted by Joe Ross View Post
How did it work?
I'm also interested. I've experimented with this before, and have never been able to enable a robot with it. Best I've gotten is a messy GUI.
__________________
All opinions are my own.
Reply With Quote
  #7   Spotlight this post!  
Unread 12-04-2013, 01:43
StevenB StevenB is offline
is having FRC withdrawal symptoms.
AKA: Steven Bell
no team
Team Role: College Student
 
Join Date: May 2005
Rookie Year: 2005
Location: Stanford, CA
Posts: 409
StevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond repute
Re: FRC Driver Station on Linux!

That's officially way cool. Props for getting it working!

That said, as much as I love Linux, I'd never use this on the playing field. There are enough things that can go wrong already, and if you're running Linux on the DS, it's almost guaranteed that Linux/Wine is going to take the blame if something breaks - whether it's at fault or not. At home I'd absolutely use it.
__________________
Need a physics refresher? Want to know if that motor is big enough for your arm? A FIRST Encounter with Physics

2005-2007: Student | Team #1519, Mechanical Mayhem | Milford, NH
2008-2011: Mentor | Team #2359, RoboLobos | Edmond, OK
2014-??: Mentor | Looking for a team...
Reply With Quote
  #8   Spotlight this post!  
Unread 14-04-2013, 23:52
gluxon's Avatar
gluxon gluxon is offline
\n
AKA: Brandon Cheng
FRC #0178 (The 2nd Law Enforcers)
Team Role: Leadership
 
Join Date: Apr 2012
Rookie Year: 2011
Location: Connecticut
Posts: 65
gluxon has a spectacular aura aboutgluxon has a spectacular aura aboutgluxon has a spectacular aura about
Re: FRC Driver Station on Linux!

Wait.. let me understand this. WINE handled the entire LabVIEW runtime without complaints? O_o
Reply With Quote
  #9   Spotlight this post!  
Unread 15-04-2013, 12:03
Racer26 Racer26 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Beaverton, ON
Posts: 2,229
Racer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond repute
Re: FRC Driver Station on Linux!

Quote:
Originally Posted by gluxon View Post
Wait.. let me understand this. WINE handled the entire LabVIEW runtime without complaints? O_o
As a Certified LabVIEW Developer who works for a company that does Linux software, I've actually tried running a LabVIEW app I wrote for windows under Linux.

Linux seems to take the LabVIEW RTE just fine under Wine without complaining. The development environment, however, doesn't work properly.

I don't know if OP actually tried it at competition (we're both on 4343). I advised him of what everyone here has basically said. That I was unaware of any rules against it, but that the FTA would not be able to support them if they ran into troubles. Also, that it may not behave nicely with all the behind the scenes stuff FMS does that just a driver station + robot doesn't do.
Reply With Quote
  #10   Spotlight this post!  
Unread 29-04-2013, 17:52
indiv0 indiv0 is offline
Code monkey
AKA: Nikita
FRC #4343 (MaxTech)
Team Role: Leadership
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Aurora, ON
Posts: 9
indiv0 is on a distinguished road
Unhappy Re: FRC Driver Station on Linux!

Unfortunately, due to our problems at GTRW, we didn't managed to get to many practice matches (I believe we only played 2-3), and to reduce any variables which might have affected our testing procedures, I decided against trying out DS on Linux at the competition. I'm really sad I didn't get a chance to try, but then again there's always next year (commanding the younger programmers as a mentor to do my bidding )
Reply With Quote
  #11   Spotlight this post!  
Unread 30-04-2013, 19:42
panicnot42 panicnot42 is offline
Registered User
AKA: Joe D
FRC #1334
Team Role: Programmer
 
Join Date: Apr 2013
Rookie Year: 2011
Location: Canada
Posts: 10
panicnot42 is an unknown quantity at this point
Re: FRC Driver Station on Linux!

Very impressive! I've felt in the past that someone needs to compile all the FRC tools that work on linux into one package. Maybe even a full blown FRC distro?
Reply With Quote
  #12   Spotlight this post!  
Unread 18-12-2013, 22:09
ad1217 ad1217 is offline
Registered User
FRC #1786 (The Robotics Team)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2007
Location: New Hampshire
Posts: 7
ad1217 is an unknown quantity at this point
Re: FRC Driver Station on Linux!

I have been trying to get the Driver Station working under wine (just to make testing a bit easier), and have gotten it all running and connected to the robot, but it doesn't seem to read the joysticks correctly. It sees them, and the indicator light turns blue when a button is pressed, but the axes don't appear to be read. Did you run into this problem/have any suggestions?
Reply With Quote
  #13   Spotlight this post!  
Unread 19-12-2013, 07:16
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: FRC Driver Station on Linux!

The DS uses DirectInput libraries to open and read the joysticks. Can you test whether the Control Panel>>Game Controllers lists them, and whether the test panel works as expected including the axes?

Greg McKaskle
Reply With Quote
  #14   Spotlight this post!  
Unread 04-01-2014, 22:35
riftware riftware is offline
Parent Mentor
AKA: Andrew Chandler
FRC #0031
Team Role: Mentor
 
Join Date: Dec 2013
Rookie Year: 2011
Location: Tulsa
Posts: 27
riftware is an unknown quantity at this point
Re: FRC Driver Station on Linux!

I'd love a step by step set of instructions - I have crossover office installed ( a pre-setup version of wine) but I could actually install the wine packages directly if need be. I'm running ubuntu and I'm really just looking to avoid having to use my win7 vm for doing development work.
Reply With Quote
  #15   Spotlight this post!  
Unread 06-01-2014, 20:57
indiv0 indiv0 is offline
Code monkey
AKA: Nikita
FRC #4343 (MaxTech)
Team Role: Leadership
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Aurora, ON
Posts: 9
indiv0 is on a distinguished road
Re: FRC Driver Station on Linux!

Quote:
Originally Posted by ad1217 View Post
I have been trying to get the Driver Station working under wine (just to make testing a bit easier), and have gotten it all running and connected to the robot, but it doesn't seem to read the joysticks correctly. It sees them, and the indicator light turns blue when a button is pressed, but the axes don't appear to be read. Did you run into this problem/have any suggestions?
No I did not have this problem. Sorry, I wish I could help more but I'm not sure what else could be necessary.

Quote:
Originally Posted by riftware View Post
I'd love a step by step set of instructions - I have crossover office installed ( a pre-setup version of wine) but I could actually install the wine packages directly if need be. I'm running ubuntu and I'm really just looking to avoid having to use my win7 vm for doing development work.
I'd love too but unfortunately I'm far away from my former FRC team ATM so i can't get a copy of LabView. It was a very simple process though. I don't remember the exact steps but it was essentially:

Code:
sudo pacman -S wine
wine LabViewRT_32.exe
wine DriverStation.exe
I honestly didn't have to do more than that.

I use Arch Linux, so replace pacman with apt-get for ubuntu:

Code:
sudo apt-get install wine
Let me know if it works.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 21:15.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi