Swerve Drive Configuration
Last updated
Was this helpful?
swervedrive.json)The Swerve Drive JSON configuration file configures everything related to the overall Swerve Drive. It maps 1:1 to SwerveDriveJson which creates a SwerveDriveConfiguration that is used to create the SwerveDrive object.
invertedIMU
Boolean
Y
Inversion state of the IMU.
modules
String array
Y
Module JSONs in order clockwise order starting from front left.
{
"imu": {
"type": "pigeon2",
"id": 13,
"canbus": "canivore"
},
"invertedIMU": true,
"modules": [
"frontleft.json",
"frontright.json",
"backleft.json",
"backright.json"
]
}Last updated
Was this helpful?
Was this helpful?