|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: cRIO simulator - FrcSimulatorClient-full-0.1a.jar
There appears to be a new CRIO simulator available.
Has anyone gotten the FrcSimulatorClient-full-0.1a.jar to work? Does anyone have documentation? http://sourceforge.net/projects/frcsimulator/ Dave Frederick, Manassas VA |
|
#2
|
||||
|
||||
|
Re: cRIO simulator - FrcSimulatorClient-full-0.1a.jar
Quote:
|
|
#3
|
|||
|
|||
|
Re: cRIO simulator
One could conceivably use a Proxy (http://en.wikipedia.org/wiki/Proxy_pattern) to abstract WPILib from the actual code, allowing a mock implementation with GUI/output to be set up in its place while using the same calls and method signatures. However, you'd have to make sure everything you're using is covered by the proxy (which can be a lot of work).
I guess I've never thought about it -- would using the same package names in a mock implementation be bad form? I suppose it's not a big deal if released under the same license as the original. It sure would make it easier on the proxy (otherwise some configuration file would have to be set up, or the code in the proxy would have to be changed when building differently). |
|
#4
|
||||
|
||||
|
Re: cRIO simulator
Read one of my first posts on this forum as linked here:
http://www.chiefdelphi.com/forums/sh...231#post981231 That has not been updated in quite some time and the students that wrote most of it have moved on. Perhaps you'll find some value in it. |
|
#5
|
|||
|
|||
|
Re: cRIO simulator - FrcSimulatorClient-full-0.1a.jar
Quote:
As the wiki on the website says, just run `java --classpath FrcSimulatorClient-xx.xxx.jar:YourJarNameOrPathToClassFiles net.sourceforge.frcsimulator.Client --gui -s your.class.package.and.name` We have changed the command line arguments in the svn(dev) version after developing a class to handle them, reading the doc within the code should help alot. (once we figure out a good way to post the javadoc, we'll do that, until then you can read the code or generate it yourself). |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|