![]() |
Test Harness Tips
So on my FRC team we are using C++ as our main language with python as a secondary backup language. We only have the means to test one code language at a time and the C++ half of our programming team always get dibs. This caused me to make a test harness to simulate the CRIO. My question is how do I emulate joystick input with (or without) wpilib?
|
Re: Test Harness Tips
Use pygame for joystick input.
If your test harness is general enough, you should consider releasing it for others to use. :) I've been considering making one and adding it to the RobotPy release, but for what we've needed simple unit testing (with a fake wpilib) has been sufficient. Check out this thread. |
Re: Test Harness Tips
Quote:
|
Re: Test Harness Tips
Quote:
For PyGame: http://www.pygame.org/wiki/tutorials |
Re: Test Harness Tips
Btw, we have our own test harness library that is associated with RobotPy. See http://www.chiefdelphi.com/forums/sh...d.php?t=109678
|
Re: Test Harness Tips
This might be of assistance with pyGame. http://iamtherockstar.com/archive/ma...ame-joysticks/
|
| All times are GMT -5. The time now is 19:49. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi