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.