Go to Post The 2008 team is not the 2007 team and won't be the 2009 team. Every year is a new year and a new opportunity for growth and development as a FIRST team. It's very cool. - JaneYoung [more]
Home
Go Back   Chief Delphi > Technical > Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 09-03-2009, 15:01
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Virtual Driver Station

Cool! this will be nice if we blow another ds!
Could I have the source? this would be really useful. Also, can you plug in a flashdrive, and update firmware? THAT, would be Awesome!
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote
  #17   Spotlight this post!  
Unread 09-03-2009, 15:45
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: Virtual Driver Station

This is a great tool, I can't wait till the joysticks selection feature is released.

I'm very surprised that FIRST did not release a softDS instead of giving them out to 1500 teams. It would have been allot cheaper for them, they could have just had driver stations with the field and had USB breakout that uses HID.

EDIT: Having played with this a for about 2 hours tonight I would like to upgrade this from great to AWESOME!

The only thing it needs is the Joystick Selection and Feedback for DS Outputs.
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni

Last edited by Kingofl337 : 09-03-2009 at 20:44.
Reply With Quote
  #18   Spotlight this post!  
Unread 10-03-2009, 21:18
Gary Bonner Gary Bonner is offline
Registered User
FRC #3974
 
Join Date: Jan 2002
Rookie Year: 2000
Location: PA
Posts: 120
Gary Bonner has a spectacular aura aboutGary Bonner has a spectacular aura about
Re: Virtual Driver Station

This sounds like just what we need. We have two cRIOs and only one driver station. We are planning on using the second cRIO for demonstrations at our upcoming regional and the DS will be occupied.

Can a Labview front panel be running and displaying data in another window while the virtual driver station is running?
Reply With Quote
  #19   Spotlight this post!  
Unread 12-03-2009, 10:01
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Re: Virtual Driver Station

OK, I've got the next version ready for anyone who wants to try it out. It's a pretty big change over the previous one. Here's the features I've added:
- GUI to set DS digital inputs
- GUI sliders to set value of DS analog inputs
- Display of DS digital outputs
- Prompt for team # at startup so you don't need to provide it as a
program argument (previous value remembered)
- Map real joysticks to DS USB ports
- Labels for DS inputs/outputs that are saved

It's available here:
http://www.pier13.com/projects/frc/virtualds/

Check it out and let me know what you think. I added another safety feature which is that the mouse must remain on top of the window or the robot will be disabled. This may be a bit too paranoid (and can be annoying), but without that feature it's possible to click in another window and give it focus, and then the spacebar and/or ESC key no longer works to quickly disable the robot. Additionally, I had to change the key to change LCD screens from TAB to F1, and the reboot command is temporarily disabled.

There are labels for each of the digital inputs and outpus which can be edited. These will be saved when the program exits. Additionally, the team # that you are prompted for at startup will be saved as well.

Attached is a screenshot that shows the new version.
Quote:
Originally Posted by Gary Bonner
Can a Labview front panel be running and displaying data in another window while the virtual driver station is running?
We don't use Labview so I can't say for sure, but I don't see why not. When you say "front panel" is that the Dashboard or some other Labview thing? The catch with the Dashboard is that you need to set your computer's IP address to the address the DS would use (10.xx.yy.5), and the dashboard data is sent to 10.xx.yy.6. A revision to come soon will allow you to override the dashboard and robot IP addresses to help with this problem. In the meantime if you know what you're doing you can add the Dashboard IP address to your Ethernet network adapter in Windows (so it will have 2 address, 10.xx.yy.5 and 10.xx.yy.6) which should make it work.
Attached Thumbnails
Click image for larger version

Name:	virtualds_0.4.png
Views:	154
Size:	51.5 KB
ID:	7667  
Reply With Quote
  #20   Spotlight this post!  
Unread 12-03-2009, 12:57
Gary Bonner Gary Bonner is offline
Registered User
FRC #3974
 
Join Date: Jan 2002
Rookie Year: 2000
Location: PA
Posts: 120
Gary Bonner has a spectacular aura aboutGary Bonner has a spectacular aura about
Re: Virtual Driver Station

The front panel is like a user interface; you can both view data from the cRIO as well as provide input. Others can describe it better. For our purposes, the virtual driver station would have to lose focus, so we'll try using two laptops.
Reply With Quote
  #21   Spotlight this post!  
Unread 12-03-2009, 13:24
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Re: Virtual Driver Station

Quote:
Originally Posted by Gary Bonner View Post
The front panel is like a user interface; you can both view data from the cRIO as well as provide input. Others can describe it better. For our purposes, the virtual driver station would have to lose focus, so we'll try using two laptops.
I might add a menu option to turn that focus 'feature' off for things like that too.
Reply With Quote
  #22   Spotlight this post!  
Unread 12-03-2009, 16:57
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Virtual Driver Station

nice update!
could you add clicking the select button switches between modes and clicking the teleop auto button switches that?
also, could you send me the code?
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote
  #23   Spotlight this post!  
Unread 12-03-2009, 22:04
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: Virtual Driver Station

I haven't tried the new version on my robot yet, but after load and team number entry the display shows Team 0000. I also noticed the "feature" about having another application create no responce to the space bar. As, much as having the mouse over the application to allow it to enable is bothersome its much safer. I do not think you should allow for a bypass of this feature.

Virtual DS 2010!
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni

Last edited by Kingofl337 : 12-03-2009 at 22:11.
Reply With Quote
  #24   Spotlight this post!  
Unread 12-03-2009, 23:14
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Re: Virtual Driver Station

Quote:
Originally Posted by Kingofl337 View Post
I haven't tried the new version on my robot yet, but after load and team number entry the display shows Team 0000.
This is normal - I use the team number that comes back from the robot, so if you're not connected you'll get 0000. Also, it won't let you enable or go into autonomous unless it's receiving valid packets from the robot.

For anyone who's using the program, I posted a new version to fix a small bug with the analog values that I discovered when I was able to test with our robot tonight.
Reply With Quote
  #25   Spotlight this post!  
Unread 13-03-2009, 11:59
Gary Bonner Gary Bonner is offline
Registered User
FRC #3974
 
Join Date: Jan 2002
Rookie Year: 2000
Location: PA
Posts: 120
Gary Bonner has a spectacular aura aboutGary Bonner has a spectacular aura about
Re: Virtual Driver Station

Last night I tried out the original version of the virtual driver station, which doesn’t have the mouse over feature, with an open front panel. Everything worked great. This is exactly what we needed. The demos we’ll be running with it are not on a robot, and are inactive except while a button is pressed, so a disable is more or less built into them.

Thanks.
Reply With Quote
  #26   Spotlight this post!  
Unread 14-03-2009, 12:11
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: Virtual Driver Station

I found two bugs in the .5 version of the Virtual DS software. After detecting my robot it displayed the team number as 0111!? When I plugged in a Logitech Dual Action GamePad and started the software it gave an error and would not detect the game pad.

I was running the software from My Desktop on Vista Premium
Attached Thumbnails
Click image for larger version

Name:	FIRST VirtualDS.jpg
Views:	104
Size:	137.1 KB
ID:	7673  
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni
Reply With Quote
  #27   Spotlight this post!  
Unread 14-03-2009, 13:23
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Re: Virtual Driver Station

Quote:
Originally Posted by Kingofl337 View Post
I found two bugs in the .5 version of the Virtual DS software. After detecting my robot it displayed the team number as 0111!?
Yup, oops, sorry about that. Fixed. Incidentally, I created a cRIO simulator and I did test it with different team numbers, but now realized that my simulator didn't verify the correct team number was being received . Good catch.
Quote:
When I plugged in a Logitech Dual Action GamePad and started the software it gave an error and would not detect the game pad.
Yeah, I saw this on Thursday night when another mentor fired it up on his Vista laptop (I only have XP machines and it doesn't happen on those). It's not a defect in my code - it's in the wxWidgets library that's used. I'll need to look into how to fix it. However, it doesn't prevent it from working. It actually detects the joystick just fine, it just can't read the name of the stick. So, in the joysticks dropdown you'll see a blank line, which is your joystick. Not ideal but at least it works. I also need to confirm if this happens with all joystick types or just Logitech.

Additionally, I reworked the application focus safety feature. Now, it can detect the spacebar or ESC key even when the VirtualDS does not have focus. So, it no longer disables the robot when you move the mouse out of the window. This is quite an improvement I think. Now, if you go to another window, as soon as you hit space or ESC it will still disable the robot. The downside is it disables any time spacebar is hit - even if you're filling in one of the label fields in the DS. This is a good thing I think, but a little quirky.

New version here:
http://www.pier13.com/projects/frc/virtualds/
Reply With Quote
  #28   Spotlight this post!  
Unread 25-03-2009, 16:18
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,187
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: Virtual Driver Station

This tool has been super useful to us. We killed our DS at the regional and still haven't gotten a replacement. Thanks.

We've put a bunch of software dev and drive hours on the vDS, and everything seems to run smoothly.

There is one issue where after a while of use, the robot will switch between enabled and disabled mode (at least on the UI) at about 5Hz. We have to reboot the cRIO to fix it.
Reply With Quote
  #29   Spotlight this post!  
Unread 25-03-2009, 17:30
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Re: Virtual Driver Station

Quote:
Originally Posted by Tom Bottiglieri View Post
This tool has been super useful to us. We killed our DS at the regional and still haven't gotten a replacement. Thanks.

We've put a bunch of software dev and drive hours on the vDS, and everything seems to run smoothly.
I'm really glad to hear that it has been working for you. I have been curious if anyone was actually using it
Quote:
There is one issue where after a while of use, the robot will switch between enabled and disabled mode (at least on the UI) at about 5Hz. We have to reboot the cRIO to fix it.
Interesting. I'll have to see if I can get some extended time with our robot to attempt to reproduce this.
Reply With Quote
  #30   Spotlight this post!  
Unread 25-03-2009, 21:18
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,187
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: Virtual Driver Station

Would it be possible for this to talk to FMS Light? We are doing some tricky things with some hard timed loop, and I want to make sure our code will run in a competition environment. I am 99% sure it will be fine, but Murphy can always find that 1%.

If not, would it be possible to add controls to the GUI select alliance color? We pull that data from the DS object in WPILib. Right now the vDS returns kRed.

Last edited by Tom Bottiglieri : 26-03-2009 at 00:08.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Driver Station S.O.S. M. Gildner Electrical 15 28-11-2009 19:35
Driver Station dnrobotics11 Control System 2 18-02-2009 21:35
Inputs on Driver Station z2daj C/C++ 8 16-02-2009 04:12
Dead Driver Station? tdeprince FRC Control System 3 12-02-2009 12:14
Need Driver Station dekker120 FRC Control System 2 02-02-2009 12:59


All times are GMT -5. The time now is 05:49.

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