14#include "pros/motors.hpp"
15#include "pros/imu.hpp"
59 float smallErrorTimeout;
61 float largeErrorTimeout;
78 pros::Motor_Group* leftMotors;
79 pros::Motor_Group* rightMotors;
114 void setPose(
double x,
double y,
double theta,
bool radians =
false);
141 void turnTo(
float x,
float y,
int timeout,
bool reversed =
false,
float maxSpeed = 127,
bool log =
false);
153 void moveTo(
float x,
float y,
int timeout,
float maxSpeed = 200,
bool log =
false);
165 void follow(
const char* filePath,
int timeout,
float lookahead,
bool reverse =
false,
float maxSpeed = 127,
Chassis class.
Definition: chassis.hpp:89
void moveTo(float x, float y, int timeout, float maxSpeed=200, bool log=false)
Move the chassis towards the target point.
Pose getPose(bool radians=false)
Get the pose of the chassis.
Chassis(Drivetrain_t drivetrain, ChassisController_t lateralSettings, ChassisController_t angularSettings, OdomSensors_t sensors)
Construct a new Chassis.
void follow(const char *filePath, int timeout, float lookahead, bool reverse=false, float maxSpeed=127, bool log=false)
Move the chassis along a path.
void calibrate()
Calibrate the chassis sensors.
void setPose(Pose pose, bool radians=false)
Set the pose of the chassis.
void setPose(double x, double y, double theta, bool radians=false)
Set the pose of the chassis.
void turnTo(float x, float y, int timeout, bool reversed=false, float maxSpeed=127, bool log=false)
Turn the chassis so it is facing the target point.
Definition: trackingWheel.hpp:19
Struct containing constants for a chassis controller.
Definition: chassis.hpp:55
Struct containing constants for a drivetrain.
Definition: chassis.hpp:77
Struct containing all the sensors used for odometry.
Definition: chassis.hpp:33
tracking wheel class declarations
float slew(float target, float current, float maxChange)
Slew rate limiter.