Emulating Code in Synthesis
- How do I access the code emulator in Synthesis?
- How do I build and deploy my code to Synthesis?
First build your code as you would for your robot within your IDE. Then, within Synthesis click on the Emulation tab -> click “Select Code,” and navigate to your FRCUserProgram. You can utilize the built-in driver station to set the robot mode to Enable/Disable and test your code.Tutorial: Running your Code in Synthesis
- What kind of inputs and outputs does code emulator support?
We support gamepad inputs, drive train encoder inputs, and match information including robot mode, alliance station ID, enabled state, and game specific messages. For outputs, we support Talon SRX and Victor SPX CAN and PWM header outputs to motor controllers. For more advanced users seeking more details, you can watch localhost on ports 11000 and 11001 for JSON representations of supported robot inputs and outputs respectively.
- What programming languages does the code emulator support?
Our emulator supports C++ and Java FRCUserPrograms.d
- How are new features added/requested?
New features can be requested on our forums or by contacting us through our website. We are an open source project, so you can find emulator source code online in our GitHub repository. Through that avenue, you can add features and submit a pull request for review. If the requested feature or pull request it is accepted, support for the new feature will then be added to both the emulator and the robot simulator for release in a future update.