#include <chassis.hpp>
|
| struct | DriveCorrection |
| | Configuration for active heading correction during driver control. More...
|
| |
| struct | DriveCurve |
| | Represents a simple deadzone-minimum output exponential or linear drive curve. More...
|
| |
| struct | DriveCurves |
| | Holds the drive curves for movement and rotation inputs. More...
|
| |
|
| | Chassis (pros::Motor &frontLeft, pros::Motor &frontRight, pros::Motor &backLeft, pros::Motor &backRight, pros::IMU &imu, EncoderEKFOdometry &odom) |
| |
| void | calibrate () |
| |
| void | drive (float vx, float vy, float omega, float theta) |
| |
| void | driveControl (float forward, float sideways, float rotation, DriveCurves drivecurves, bool fieldCentric, float headingOffset, DriveCorrection correction) |
| |
| void | brake () |
| |
| bool | detectCollision () |
| |
Definition at line 12 of file chassis.hpp.
◆ Chassis()
| hololib::Chassis::Chassis |
( |
pros::Motor & |
frontLeft, |
|
|
pros::Motor & |
frontRight, |
|
|
pros::Motor & |
backLeft, |
|
|
pros::Motor & |
backRight, |
|
|
pros::IMU & |
imu, |
|
|
EncoderEKFOdometry & |
odom |
|
) |
| |
|
inline |
◆ calibrate()
| void hololib::Chassis::calibrate |
( |
| ) |
|
◆ drive()
| void hololib::Chassis::drive |
( |
float |
vx, |
|
|
float |
vy, |
|
|
float |
omega, |
|
|
float |
theta |
|
) |
| |
◆ driveControl()
| void hololib::Chassis::driveControl |
( |
float |
forward, |
|
|
float |
sideways, |
|
|
float |
rotation, |
|
|
DriveCurves |
drivecurves, |
|
|
bool |
fieldCentric, |
|
|
float |
headingOffset, |
|
|
DriveCorrection |
correction |
|
) |
| |
◆ brake()
| void hololib::Chassis::brake |
( |
| ) |
|
◆ detectCollision()
| bool hololib::Chassis::detectCollision |
( |
| ) |
|