41 Piston(
int input_port,
bool default_state =
false);
53 Piston(
int input_port,
int expander_smart_port,
bool default_state =
false);
87 bool reversed =
false;
PROS API header provides high-level user functionality.
Stateful 3-wire pneumatic piston with toggle helpers.
Piston(int input_port, bool default_state=false)
Piston constructor.
Piston(int input_port, int expander_smart_port, bool default_state=false)
Piston constructor in 3 wire expander.
bool get()
Returns current piston state.
pros::adi::DigitalOut piston
Underlying PROS digital output.
void set(bool input)
Sets the piston to the input.
void button_toggle(int toggle)
One button toggle for the piston.
void buttons(int active, int deactive)
Two-button trigger: one button extends, the other retracts.
Public LightLib odometry / pose-estimation API.