HoloLib
High-performance holonomic (X-Drive) control library for VEX V5
Loading...
Searching...
No Matches
DriveCorrection Struct Reference

Configuration for active heading correction during driver control. More...

#include <config.h>

Public Attributes

bool correctionOn = true
 True to actively maintain heading when rotation joystick is released.
 
float kP = 1.0f
 Proportional gain for heading hold.
 
float kI = 0.01f
 Integral gain for heading hold.
 
float kD = 0.1f
 Derivative gain for heading hold.
 

Detailed Description

Configuration for active heading correction during driver control.

Definition at line 39 of file config.h.

Member Data Documentation

◆ correctionOn

bool DriveCorrection::correctionOn = true

True to actively maintain heading when rotation joystick is released.

Definition at line 40 of file config.h.

◆ kP

float DriveCorrection::kP = 1.0f

Proportional gain for heading hold.

Definition at line 42 of file config.h.

◆ kI

float DriveCorrection::kI = 0.01f

Integral gain for heading hold.

Definition at line 43 of file config.h.

◆ kD

float DriveCorrection::kD = 0.1f

Derivative gain for heading hold.

Definition at line 44 of file config.h.