RaidZeroLib
Coroutine robot framework for VEX V5
Loading...
Searching...
No Matches
Chassis

The skid-steer drivetrain and driver control. More...

Classes

struct  rz::ArcadeConfig
struct  rz::TankConfig
class  rz::SkidSteerChassis
 A drivetrain with a left and a right side, each driven as one motor (usually a MotorGroup). More...

Typedefs

using rz::StickCurve = std::function<double(double)>
 Shapes a stick input. Takes and returns a value from -1 to 1, e.g. [](double x) { return x * x * x; } for finer control at low speeds.

Functions

Task rz::arcade (SkidSteerChassis &chassis, const Controller &controller, ArcadeConfig config={})
 The left stick's vertical axis drives; the right stick's horizontal axis turns (pushing right turns clockwise).
Task rz::tank (SkidSteerChassis &chassis, const Controller &controller, TankConfig config={})
 The left stick's vertical axis drives the left side; the right stick's vertical axis drives the right.

Detailed Description

The skid-steer drivetrain and driver control.

Typedef Documentation

◆ StickCurve

using rz::StickCurve = std::function<double(double)>

Shapes a stick input. Takes and returns a value from -1 to 1, e.g. [](double x) { return x * x * x; } for finer control at low speeds.

Function Documentation

◆ arcade()

Task rz::arcade ( SkidSteerChassis & chassis,
const Controller & controller,
ArcadeConfig config = {} )
nodiscard

The left stick's vertical axis drives; the right stick's horizontal axis turns (pushing right turns clockwise).

◆ tank()

Task rz::tank ( SkidSteerChassis & chassis,
const Controller & controller,
TankConfig config = {} )
nodiscard

The left stick's vertical axis drives the left side; the right stick's vertical axis drives the right.