SimuationPanel doesn't itself simulate anything. It is the control interface for the overall simulation.
SimuationPanel.tcl is called from the standard code and should not need to be modified when implementing a typical robot. When RoboSystem.tcl is executed, SimuationPanel.tcl defines the root graphic window. It's window takes the name RoboSystem.tcl.
Click on a thumbnail sketch to see the full size picture.
|
SimulationPanel is made up of several child objects. I will not detail the details of the design. Instead I will describe how the resulting SimulationPanel is used when running a simulation. |
|
At the bottom right you can see the SimControl part of the panel. By clicking on the buttons you can Run/Stop/Step the simulation. You can also Exit the simulation with a button click. |
|
These buttons allow you to switch the mode the same as with a competition port dongle. |
|
Sometimes it is more convenient to see a real-time view of the port values. The ByteMonitor does that for you. Of course, this is the same information as is presented in the TextLog window above. |
Due to a bug, you should click on one of the three buttons "Auto", "Manual", or "Disable" before starting a simulation.