5#include "pros/motors.hpp"
38inline pros::Motor
Top(7);
40inline pros::MotorGroup
Score({17, 7});
64 {0.0, 45.0, 90.0, 135.0, 180.0},
Tank-drive chassis class.
Stateful 3-wire pneumatic piston with toggle helpers.
Manual-then-snap controller for a motor + rotation-sensor pair.
Umbrella header for LightLib's own classes.
Manual-then-snap mechanism controller.
Drive chassis
The drive chassis, configured in main.cpp and used everywhere else.
pros::MotorGroup Score({17, 7})
Top + Bottom together.
pros::Rotation LiftRot(0)
Rotation sensor on the lift axis.
Colors
Alliance color enum used by the color-sort logic.
light::RotationalSnap Lift(LiftMotor, LiftRot, {0.0, 45.0, 90.0, 135.0, 180.0}, 1.5, 1.0, 80)
Lift assembly: snaps to {0, 45, 90, 135, 180}° at rest.
pros::Motor LiftMotor(0)
0 = disabled until you set the port.
Colors allianceColor
Currently active alliance color.
light::Piston Hood('E')
Scoring hood.
light::Piston MidGoal('D')
Mid-goal clamp or mechanism.
pros::Motor turret(0)
Set port to 0 if not installed.
pros::Optical optical(15)
Optical sensor for color sorting.
light::Piston Loader('C')
Ball loader / indexer.
light::Piston Wings('A')
Intake wings / expander.