![]() |
RaidZeroLib
Coroutine robot framework for VEX V5
|
The exclusive right to drive the chassis, held by whatever is driving it right now. More...
#include <SkidSteerChassis.hpp>
Public Member Functions | |
| Lease (Lease &&other) noexcept | |
| Lease (const Lease &)=delete | |
| Lease & | operator= (const Lease &)=delete |
| Lease & | operator= (Lease &&)=delete |
| ~Lease () | |
| void | apply (WheelVoltages command) |
| Commands both sides. If either exceeds 12 V, both are scaled down together so the robot keeps its curve. | |
Friends | |
| class | SkidSteerChassis |
The exclusive right to drive the chassis, held by whatever is driving it right now.
Releasing it (when the motion finishes, is cancelled, or throws) sends 0 V, so the motors never keep running on their own. A motion started right after another writes its first command in the same tick, so the 0 V never reaches the motors and back-to-back motions chain without a gap.
|
inlinenoexcept |
|
delete |
| rz::SkidSteerChassis::Lease::~Lease | ( | ) |
| void rz::SkidSteerChassis::Lease::apply | ( | WheelVoltages | command | ) |
Commands both sides. If either exceeds 12 V, both are scaled down together so the robot keeps its curve.
|
friend |