
13-07-2014, 10:07
|
 |
RobotPy Guy
AKA: Dustin Spicuzza
 FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
|
|
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,043
|
|
|
Re: A library to simulate joystick button press events?
Pressing buttons virtually is one way of accomplishing the task. Other ways I can think of, from easiest to hardest.
- Use networktables to send a value to the LabVIEW code. Remember, your code can do more than one thing.
 - Or just use sockets for communications. Should be easy to find an example somewhere on Chief Delphi.
- If you're using python, you could try just sending raw driver station data instead using the driver station protocol. RobotPy has some code that may work for doing this.
- You could simulate joystick buttons, this looks promising. I'd bet it's harder than the other alternatives.
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/ pynetworktables2js (NetworkTables for Python & Javascript)
2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award
Resources: FIRSTWiki (relaunched!) | My Software Stuff
|