-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toast Simulation GUI #50
Comments
The way Toast's Simulation GUI currently works is by redirecting WPILib JNI calls to the GUI. Toast has a wrapper system that doesn't require a Toast module and will work with a normal WPILib jar. This won't work for 2017 binaries just yet, but works fine for 2016 codebases. Drop your |
I created a module with Hotplate and the instructions from the wiki and ran the basic module. The project has a |
|
Ok, so I added the module and used the TestModule-Sim run config in IntelliJ 2016.3 with code compiled with the 2016 FRC plugins in Eclipse Mars (the code was developed with Eclipse but I felt like running Toast in IntelliJ). I dropped the the
The error occurs in this call: public static SensorInput getInstance() {
if(instance == null) {
instance = new SensorInput();
}
return instance;
} which calls the following constructor: private SensorInput() {
this.inputValues = Collections.synchronizedMap(new LinkedHashMap<String, Double>());
pdp = new PowerDistributionPanel();
// adIMU = new ADIS16448_IMU();
cuiLeft = new Encoder(ChiliConstants.iLeftEncoderA, ChiliConstants.iLeftEncoderB, false, EncodingType.k4X);
cuiRight = new Encoder(ChiliConstants.iRightEncoderA, ChiliConstants.iRightEncoderB, false, EncodingType.k4X);
intakeAngle = new Encoder(ChiliConstants.iIntakeEncoderA, ChiliConstants.iIntakeEncoderB, false, EncodingType.k4X);
camLeft = new USBCamera(ChiliConstants.kCamLeft);
camCenter = new AxisCamera(ChiliConstants.kCamCenter);
//camRight = new USBCamera(ChiliConstants.kCamRight);
camLeft.openCamera();
//camRight.openCamera();
camLeft.startCapture();
//camRight.startCapture();
abort_vision = false;
this.initEncoders();
} The error occurs when initializing |
Your code is using Encoders, however Toast doesn't currently support Encoder simulation. See #35 |
My bad, I forgot to look through the other issues. Thanks! |
Would it be possible to have an independent simulator to aid teams who are using the default tools given to them by FIRST? Maybe a sort of wrapper which takes calls to the WPIlib classes and redirects those function calls to the GUI
The text was updated successfully, but these errors were encountered: