Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 1.93 KB

File metadata and controls

39 lines (29 loc) · 1.93 KB

PIDF Properties Configuration

Swerve Module PID Configuration (modules/pidfpropreties.json)

This file configures the PIDF values with integral zone and maximum output of the drive and motor modules for every swerve module. It maps 1:1 to PIDFPropertiesJson and is used while initializing the SwerveDriveConfiguration object.

{% hint style="warning" %} TalonFX/Kraken/Falcon angle motors require a high PID (around ~50 kP, and ~0.32 kD). {% endhint %}

Fields

NameUnitsRequiredDescription
drivePIDF with Integral Zone and Output limitYThe configuration which will be used for the PIDF on the drive motor.
anglePIDF with Integral Zone and Output limitYThe configuration which will be used for the PIDF on the angle motor.

Example Configuration File

{
  "drive": {
    "p": 0.0020645,
    "i": 0,
    "d": 0,
    "f": 0,
    "iz": 0
  },
  "angle": {
    "p": 0.01,
    "i": 0,
    "d": 0,
    "f": 0,
    "iz": 0
  }
}

how-to-tune-pidf.md