RaidZeroLib
Coroutine robot framework for VEX V5
Loading...
Searching...
No Matches
rz::SkidSteerChassis::Lease Class Reference

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ Lease() [1/2]

rz::SkidSteerChassis::Lease::Lease ( Lease && other)
inlinenoexcept

◆ Lease() [2/2]

rz::SkidSteerChassis::Lease::Lease ( const Lease & )
delete

◆ ~Lease()

rz::SkidSteerChassis::Lease::~Lease ( )

Member Function Documentation

◆ apply()

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.

◆ operator=() [1/2]

Lease & rz::SkidSteerChassis::Lease::operator= ( const Lease & )
delete

◆ operator=() [2/2]

Lease & rz::SkidSteerChassis::Lease::operator= ( Lease && )
delete

◆ SkidSteerChassis

friend class SkidSteerChassis
friend

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