You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Synthesis simulator comes with code simulation already integrated. However, a development environment for what ever code your are trying to simulate will be required.
15
15
Synthesis' code simulation relies on the WPILib HALSim extensions, specifically the websocket-client extension. You'll need to make the following changes to your `build.gradle` in order to properly simulate your code in Synthesis.
16
16
17
-
### 1. Desktop Support
17
+
### C++/Java
18
+
19
+
#### 1. Desktop Support
18
20
19
21
You'll need to enable desktop support for your project in order to run the HALSim:
20
22
21
23
```java
22
24
def includeDesktopSupport =true
23
25
```
24
26
25
-
### 2. Websocket Server Extension
27
+
####2. Websocket Server Extension
26
28
27
29
In order to communicate with your browser, you'll need to enable the websocket server extension with the following:
For CAN-based device support (TalonFX, CANSparkMax, most Gyros), you'll need our own library--SyntheSim. Currently only available for Java, SyntheSim adds additional support for third party devices that don't follow WPILib's web socket specification. It's still in early development, so you'll need to clone and install the library locally in order to use it:
36
38
@@ -63,7 +65,7 @@ All of these instructions can be found in the [SyntheSim README](https://github.
63
65
64
66
SyntheSim is very much a work in progress. If there is a particular device that isn't compatible, feel free to head to our [GitHub](https://github.com/Autodesk/synthesis) to see about contributing.
65
67
66
-
### 4. HALSim GUI
68
+
####4. HALSim GUI
67
69
68
70
This should be added by default, but in case it isn't, add this to your `build.gradle` to enable the SimGUI extension by default.
0 commit comments