LemLib  0.4.7
An easy to use and feature-rich PROS template
Loading...
Searching...
No Matches
lemlib::ChassisController_t Struct Reference

Struct containing constants for a chassis controller. More...

#include <chassis.hpp>

Public Attributes

float kP
 
float kD
 
float smallError
 
float smallErrorTimeout
 
float largeError
 
float largeErrorTimeout
 
float slew
 

Detailed Description

Struct containing constants for a chassis controller.

The constants are stored in a struct so that they can be easily passed to the chassis class Set a constant to 0 and it will be ignored

Parameters
kPproportional constant for the chassis controller
kDderivative constant for the chassis controller
smallErrorthe error at which the chassis controller will switch to a slower control loop
smallErrorTimeoutthe time the chassis controller will wait before switching to a slower control loop
largeErrorthe error at which the chassis controller will switch to a faster control loop
largeErrorTimeoutthe time the chassis controller will wait before switching to a faster control loop
slewthe maximum acceleration of the chassis controller

The documentation for this struct was generated from the following file: