diff --git a/src/main/deploy/maxswerve/controllerproperties.json b/src/main/deploy/maxswerve/controllerproperties.json new file mode 100644 index 0000000..6d17bfd --- /dev/null +++ b/src/main/deploy/maxswerve/controllerproperties.json @@ -0,0 +1,8 @@ +{ + "angleJoystickRadiusDeadband": 0.5, + "heading": { + "p": 1.1, + "i": 0, + "d": 0.125 + } +} \ No newline at end of file diff --git a/src/main/deploy/maxswerve/modules/backleft.json b/src/main/deploy/maxswerve/modules/backleft.json new file mode 100644 index 0000000..4a4b254 --- /dev/null +++ b/src/main/deploy/maxswerve/modules/backleft.json @@ -0,0 +1,23 @@ +{ + "drive": { + "type": "sparkmax", + "id": 4 + }, + "angle": { + "type": "sparkmax", + "id": 3 + }, + "encoder": { + "type": "attached", + "id": 0 + }, + "inverted": { + "drive": false, + "angle": true + }, + "absoluteEncoderOffset": 107.842, + "location": { + "x": -13.75, + "y": 13.75 + } +} diff --git a/src/main/deploy/maxswerve/modules/backright.json b/src/main/deploy/maxswerve/modules/backright.json new file mode 100644 index 0000000..bf28392 --- /dev/null +++ b/src/main/deploy/maxswerve/modules/backright.json @@ -0,0 +1,23 @@ +{ + "drive": { + "type": "sparkmax", + "id": 6 + }, + "angle": { + "type": "sparkmax", + "id": 5 + }, + "encoder": { + "type": "attached", + "id": 0 + }, + "inverted": { + "drive": false, + "angle": true + }, + "absoluteEncoderOffset": 178.330, + "location": { + "x": -13.75, + "y": -13.75 + } +} diff --git a/src/main/deploy/maxswerve/modules/frontleft.json b/src/main/deploy/maxswerve/modules/frontleft.json new file mode 100644 index 0000000..f8e7a4b --- /dev/null +++ b/src/main/deploy/maxswerve/modules/frontleft.json @@ -0,0 +1,23 @@ +{ + "drive": { + "type": "sparkmax", + "id": 2 + }, + "angle": { + "type": "sparkmax", + "id": 9 + }, + "encoder": { + "type": "attached", + "id": 0 + }, + "inverted": { + "drive": false, + "angle": true + }, + "absoluteEncoderOffset": 250.049, + "location": { + "x": -2.75, + "y": -13.75 + } +} diff --git a/src/main/deploy/maxswerve/modules/frontright.json b/src/main/deploy/maxswerve/modules/frontright.json new file mode 100644 index 0000000..0e9b295 --- /dev/null +++ b/src/main/deploy/maxswerve/modules/frontright.json @@ -0,0 +1,23 @@ +{ + "drive": { + "type": "sparkmax", + "id": 2 + }, + "angle": { + "type": "sparkmax", + "id": 3 + }, + "encoder": { + "type": "attached", + "id": 0 + }, + "inverted": { + "drive": false, + "angle": true + }, + "absoluteEncoderOffset": 254.092, + "location": { + "x": 2.75, + "y": -13.75 + } +} diff --git a/src/main/deploy/maxswerve/modules/physicalproperties.json b/src/main/deploy/maxswerve/modules/physicalproperties.json new file mode 100644 index 0000000..e9104c4 --- /dev/null +++ b/src/main/deploy/maxswerve/modules/physicalproperties.json @@ -0,0 +1,16 @@ +{ + "optimalVoltage": 12, + "wheelGripCoefficientOfFriction": 1.19, + "currentLimit": { + "drive": 40, + "angle": 25 + }, + "conversionFactor": { + "angle": 360, + "drive": 0.05082576649756735 + }, + "rampRate": { + "drive": 0.25, + "angle": 0.25 + } +} \ No newline at end of file diff --git a/src/main/deploy/maxswerve/modules/pidfproperties.json b/src/main/deploy/maxswerve/modules/pidfproperties.json new file mode 100644 index 0000000..99664bb --- /dev/null +++ b/src/main/deploy/maxswerve/modules/pidfproperties.json @@ -0,0 +1,16 @@ +{ + "drive": { + "p": 0.0020645, + "i": 0, + "d": 0, + "f": 0, + "iz": 0 + }, + "angle": { + "p": 0.01, + "i": 0, + "d": 0, + "f": 0, + "iz": 0 + } +} \ No newline at end of file diff --git a/src/main/deploy/maxswerve/swervedrive.json b/src/main/deploy/maxswerve/swervedrive.json new file mode 100644 index 0000000..d2b6dbd --- /dev/null +++ b/src/main/deploy/maxswerve/swervedrive.json @@ -0,0 +1,14 @@ +{ + "imu": { + "type": "navx_mxp", + "id": 0, + "canbus": null + }, + "invertedIMU": true, + "modules": [ + "frontleft.json", + "frontright.json", + "backleft.json", + "backright.json" + ] +} \ No newline at end of file