Device Configuration
Device Configuration
All devices in a swerve drive come down to a basic set of fields. The device configuration is used to store and create those devices during parsing with a 1:1 mapping to DeviceJson
.
Fields
Name | Units | Required | Description |
---|---|---|---|
|
| Y | The device type which is used for creation of the Swerve type. |
| Integer | Y | The ID of the device on the CANBus, or the pin ID on the roboRIO for certain devices. |
| String | N | The canbus to instantiate the device on. Only works on devices compatible with alternate CAN buses.
When the |
Useful tips
Optimize your IMU if it isn't as accurate as you hope, NavX's have this nice guide here
Read the code! If you can't understand something all of the code is documented and easy to read.
Last updated