pros::adi::Pneumatics class

Base classes

class DigitalOut

Constructors, destructors, conversion operators

Pneumatics(std::uint8_t adi_port, bool start_extended, bool extended_is_low = false) explicit
Creates a Pneumatics object for the given port.
Pneumatics(ext_adi_port_pair_t port_pair, bool start_extended, bool extended_is_low = false) explicit
Creates a Pneumatics object for the given port pair.

Public functions

std::int32_t extend()
Extends the piston, if not already extended.
std::int32_t retract()
Retracts the piston, if not already retracted.
std::int32_t toggle()
Puts the piston into the opposite state of its current state.
bool is_extended() const
Returns whether the piston is extended or not.