Skip to content

Latest commit

 

History

History
371 lines (309 loc) · 53.1 KB

README.md

File metadata and controls

371 lines (309 loc) · 53.1 KB

API reference

Writing an autonomous routine? You need two of these pages. Chassis is the facade every routine is written against, and Routine is the fluent recipe layer on top of it. Everything else on this page is the machinery underneath — real, documented, and safe to ignore until you want it.

Every public entity in every shipped header — 6,509 of them across 215 headers: types and their members, nested types, free functions, namespace-scope constants and type aliases. Extracted from the headers, so it cannot fall behind the code: anything added to a shipped header appears here the next time the tool runs, and the host test build fails if it has not.

A public entity with no documentation comment fails the build, naming itself and its file and line. That gate is what makes "generated" mean "complete" rather than "generated from whatever someone remembered to write".

What is not here, and why. Four exclusions, all deliberate:

  • include/shulib/sim/ — the host simulator. Test-only, and not by convention: a CI guard fails the build if anything outside sim/ includes it, so no robot binary can reach it.
  • hal/fake/ and localization/fake/ — the test doubles the suite drives the real seams with. Public by file placement, test fixtures by charter; test/README.md is their documentation.
  • Preprocessor macros (SHULIB_PRECONDITION, SHULIB_TRACE). A macro has no signature, no access and no type, so there is nothing for an extractor to render without inventing it. Each is explained at length in its own header's design commentary, which every page below reproduces in full — so they are on the site, in prose, but not in the member lists or the index.
  • protected members — 2 sections in the tree, in mechanism/service.hpp, motion/move_to_pose.hpp. This reference documents the surface you call; the surface you subclass is guide chapter 13's subject.

Being on this page does not freeze anything. Most of what follows is unfrozen and expected to move. The Freeze Register in the roadmap is the only place a contract is locked, and it is enforced by compile-time signature pins, not by this page: changing a frozen signature fails a C++ test that names the register row, while changing anything else here costs one /// edit and a regeneration. Those are different mechanisms and only the first is a promise.

What the gate does not check. It proves every entity has a documentation comment. It has no opinion about whether that comment says anything — /// Sets the voltage. on setVoltage passes. Only a reader catches that, which is why the headers are written to be read and why each page below ends with the header's own design commentary rather than a bare list of signatures.

Prose about how to think about the API lives in How it works — The API in words is the API as prose, and deliberately does not restate signatures. Worked recipes live in Recipes. This page answers "what exactly exists, and what is its exact spelling".

Pages

Chassis and routines

Page Header What it is
Chassis chassis/chassis.hpp Chassis — the public facade every auton is written against.
Robot context chassis/robot_context.hpp RobotContext — the composition root / DI container: "the one object that differs across robot / sim / test".
Routine chassis/routine.hpp Routine — the Tier-2 recipe layer.
Wall reset call chassis/wall_reset_call.hpp chassis::resetFromWall — the wall reset's EXPLICIT call (chunk L6-A1, 2026-10-29): re-seat ONE axis of the estimate against a field wall from a side distance sensor, over sensor handles the caller passes.

Motion

Page Header What it is
Command pipeline motion/command_pipeline.hpp applyCommandPipeline — the ONE command path from a chassis-speeds demand to energized motors.
Curve follow motion/curve_follow.hpp CurveFollow — the curve verbs' motion (chunk CURVE1, 2026-11): the robot drives a smooth path through the author's points WITHOUT stopping at them — pure pursuit on the path curve_path.hpp builds, a speed plan that slows before each bend, two guards that st…
Curve path motion/curve_path.hpp curve_path.hpp — the PURE path of the curve verbs (chunk CURVE1, 2026-11): the smooth path a curveTo / reverseCurveTo drives, built from the robot's live pose and the author's points, its speed plan, and the refusals and warnings a path earns before the rob…
Drive brake motion/drive_brake.hpp DriveBrake — stop the drivetrain and confirm it stopped.
Hold pose motion/hold_pose.hpp HoldPose — actively hold a FIELD pose against disturbance.
Leg progress motion/leg_progress.hpp leg_progress.hpp — how far a drive or a turn has got, as a PARTWAY TRIGGER reads it (chunk STEP1-B, 2026-11-11; the STEP1 brief's D7 (a)).
Motion motion/motion.hpp IMotion — the contract every motion primitive implements.
Motion config motion/motion_config.hpp MotionConfig — the shared knobs of the C1 motion primitives.
Motion scheduler motion/motion_scheduler.hpp MotionScheduler — the thing that actually runs a routine.
Move to pose motion/move_to_pose.hpp MoveToPose — decoupled per-axis field-pose motion.
Odometry stall check motion/odo_stall_check.hpp OdoStallCheck — the spin-vs-motion cross-check.
Run reporter motion/run_reporter.hpp RunReporter — the glue that makes a run LEGIBLE end to end (WS13, chunk C5): session header (§18.5) → per-motion result lines (§18.3/§18.4) → run summary (§18.3).
Strafe to motion/strafe_to.hpp StrafeTo — translate to a FIELD (x, y) while HOLDING heading.
Tank steer motion/tank_steer.hpp tank_steer.hpp — the pure geometry of TANK1: where a tank is relative to its target's LINE, and how far MoveToPose bends the heading setpoint to steer it back.
Turn to motion/turn_to.hpp TurnTo — rotate in place to a FIELD heading.

Control

Page Header What it is
Exit group control/exit_group.hpp ExitReason / ExitGroup — the motion-exit decision.
Feedforward control/feedforward.hpp Feedforward — the kS/kV/kA motor feedforward (master plan §M2): the open-loop voltage to achieve a target velocity + acceleration, so the PID only has to correct the residual.
PID control/pid.hpp Pid — a single-axis PID controller.
Settled util control/settled_util.hpp SettledUtil — the motion exit check.
Trapezoid profile control/trapezoid_profile.hpp TrapezoidProfile — a trapezoidal motion profile.
Watchdog control/watchdog.hpp Watchdog — a hard timeout primitive.

Kinematics

Page Header What it is
Desaturate kinematics/desaturate.hpp desaturateUniform — the downstream wheel-speed safety scale.
H drive kinematics/h_drive.hpp hDrive() — the H-drive (tank base + one transverse strafe wheel), as a MatrixKinematics preset (chunk C3; the hybrid backend §13 #15: a holonomic LINEAR drive is a coefficient table, exactly as xDrive() is).
Kinematics kinematics/kinematics.hpp IKinematics — the drivetrain math contract.
Matrix kinematics kinematics/matrix_kinematics.hpp MatrixKinematics — the coefficient-matrix engine for FULLY-HOLONOMIC LINEAR drives (the hybrid backend, §13 #15).
Tank kinematics/tank.hpp TankKinematics — a 2-wheel differential (skid-steer) drive.
Wheel speeds kinematics/wheel_speeds.hpp WheelSpeeds — per-wheel linear surface speeds (in/s), in a drivetrain-defined wheel order (each IKinematics impl documents its own order).
X drive kinematics/x_drive.hpp xDrive() — the symmetric 45° X-drive, as a MatrixKinematics preset (the hybrid backend §13 #15: a holonomic linear drive is just a coefficient table).

Localization

Page Header What it is
AprilTag corrector localization/apriltag_corrector.hpp AprilTagCorrector — the SECOND real corrector, and the FIRST source in the tree that can tell the estimator which way it is actually pointing.
Arc step localization/arc_step.hpp arc_step.hpp — the one constant-curvature integration step.
Axis localization/axis.hpp Axis — the FIELD axis a wall measures.
Complementary fusion localization/complementary_fusion.hpp ComplementaryFusion — the M2 fusion policy.
Correction localization/correction.hpp correction.hpp — the value types the localization fusion seam exchanges.
Drive encoder odometry localization/drive_encoder_odometry.hpp DriveEncoderOdometry — dead reckoning from the DRIVE motors' own encoders and the IMU, for a tank drive with no tracking wheels.
EKF fusion localization/ekf_fusion.hpp EkfFusion — the M3 fusion policy: a 5-state SE(2) extended Kalman filter behind the SAME IFusionPolicy seam ComplementaryFusion has occupied since M2.
GPS corrector localization/gps_corrector.hpp GpsCorrector — the FIRST REAL corrector.
ICorrector localization/i_corrector.hpp ICorrector — the WRITE seam: one source of ABSOLUTE position fixes (V5 GPS, AprilTag PnP, LIDAR scan-match).
IFusionPolicy localization/i_fusion_policy.hpp IFusionPolicy — the swap point that lets a complementary filter ship NOW and a 5-state SE(2) EKF drop in LATER behind the same seam.
IPoseSource localization/i_pose_source.hpp IPoseSource — the READ seam every pose consumer (motion, alignment, telemetry, skills) depends on.
Localizer localization/localizer.hpp Localizer — the fused field-frame estimate.
Odometry localization/odometry.hpp IOdometry — the dead-reckoning seam the Localizer predicts from.
Override walls localization/override_walls.hpp The 2026-27 season's field walls for the wall reset — VEX V5RC "Override".
Pilons odometry localization/pilons_odometry.hpp PilonsOdometry — tracking-wheel dead-reckoning.
Tag map localization/tag_map.hpp TagMap — where the AprilTags are on the field, and where each of those numbers CAME FROM.
Tracking wheel localization/tracking_wheel.hpp TrackingWheel — one unpowered odometry wheel: an IRotation sensor + the wheel's diameter + its mounting offset from the tracking center.
Wall reset localization/wall_reset.hpp The WALL RESET's pure core (chunk L6-A1, 2026-10-29; the L6 brief, the team lead's answers of 2026-10-22): the geometry that turns one side distance sensor's reading into ONE field coordinate, the gates that REFUSE rather than guess, the verdict, and the on…

Manipulation

Page Header What it is
Mechanism op manipulation/mechanism_op.hpp The bounded mechanism operation (chunk F1, WS7/M4): IMechanismOp + the two season-free operations every scoring verb decomposes into — run a motor mechanism until something confirms (RunUntilConfirmed) and fire a discrete actuator, wait for it to physically…
Mechanism outcome manipulation/mechanism_outcome.hpp MechanismOutcome — the verdict vocabulary of a bounded mechanism operation.
Stall detector manipulation/stall_detector.hpp StallDetector — the jam/stall decision for motor mechanisms.

Sequencing

Page Header What it is
Run guard sequence/run_guard.hpp RunGuard — the run-scoped deadline owner and the guaranteed END-OF-RUN ACTION.

Diagnostics

Page Header What it is
Blackbox format diag/blackbox_format.hpp The SHULIB BLACKBOX on-disk format, v1 — the binary record SdSink writes and BlackboxReader reads.
Blackbox reader diag/blackbox_reader.hpp BlackboxReader — THE DECODER. It ships in the same chunk as the encoder, because a format nothing can read is not a record: the first time a blackbox genuinely matters is a competition afternoon, and a file that cannot be opened that afternoon is worth exac…
Build info diag/build_info.hpp build_info — the git build hash plumbing for the §18.5 session header.
Controller display diag/controller_display.hpp ControllerFaultDisplay — the D-4 controller-screen content.
Crc32 diag/crc32.hpp CRC-32/IEEE — the one checksum in shulib, in the one place both of its callers can reach.
Debug record diag/debug_record.hpp DebugRecord — the per-tick snapshot schema.
Fault diag/fault.hpp Fault discipline (master plan §18.4; WS13, chunk A1) — the stable numeric fault-code enum and the latched first-fault capture.
Finite guard diag/finite_guard.hpp Finite-value invariant guards (master plan §18.4) — the LOG-AND-RECOVER counterpart to SHULIB_PRECONDITION's throw.
Health monitor diag/health_monitor.hpp HealthMonitor — sensor/power pathology → FaultCode, edge-triggered.
Level filter sink diag/level_filter_sink.hpp LevelFilterSink — per-subsystem log levels.
Line format diag/line_format.hpp line_format — the ONE set of §18.3 text-formatting primitives.
Log copy sink diag/log_copy_sink.hpp LogCopySink — a COPY of a sink's leveled messages and run summaries in a second sink, and nothing else (chunk T4 Part 3, the team lead's decisions N5 (a) and A (a), 2026-09-27/28).
Loop monitor diag/loop_monitor.hpp LoopMonitor — loop-overrun / tick-timing detection.
Motion result diag/motion_result.hpp MotionResult — the per-motion result line, as data + one formatter.
Odom tick audit diag/odom_tick_audit.hpp OdomTickAudit — the odometry trust gate's account of ONE tick: which of its checks tripped and the values it tripped on.
Plausibility guard diag/plausibility_guard.hpp Physical-plausibility invariants (diagnostics-plan D-5; WS13, chunk C5) — FiniteGuard's log-and-recover posture, extended beyond finiteness.
Rate limit sink diag/rate_limit_sink.hpp RateLimitedSink — per-channel rate limiting with COUNTED, REPORTED drops.
Run summary diag/run_summary.hpp RunSummary — the end-of-run one-screen summary, as DATA.
SD sink diag/sd_sink.hpp SdSink — the BLACKBOX: a binary, versioned, session-stamped record of a run, written to the brain's SD card.
Session info diag/session_info.hpp SessionInfo + the §18.5 session header — provenance as the FIRST lines of every run.
Shul2 format diag/shul2_format.hpp SHUL/2 — the telemetry WIRE, format v1.0: DebugRecord streamed, sequenced, checked and versioned.
Shul2 reader diag/shul2_reader.hpp Shul2Reader — the SHUL/2 reader over a WHOLE capture.
Term sink diag/term_sink.hpp TermSink — the human-readable terminal stream, the PRIMARY dev/debug surface.
Tick attribution diag/tick_attribution.hpp TickAttribution — WHO consumed the loop budget.
Tick timing stats diag/tick_timing_stats.hpp TickTimingStats — the statistics of a loop's tick-to-tick dt, as DATA.
Trace diag/trace.hpp SHULIB_TRACE — the compile-time TRACE strip.
Triage diag/triage.hpp The D-7 TRIAGE BLOCK — "why did it break", rendered for a human.

Math and frames

Page Header What it is
Angle math/angle.hpp Angle — a heading on SE(2). The one type that owns angle wrapping, so the "degrees into cos/sin" and "359° vs -1°" bug classes are impossible by construction.
Frame math/frame.hpp frame.hpp — THE ONE PLACE a frame rotation is allowed.
Pose2d math/pose2d.hpp Pose2d — a rigid-body pose on SE(2): position (x, y) + heading.
Reflection math/reflection.hpp math::Reflection — the field plane reflected across a line through the origin, or left as it is.
Twist2d math/twist2d.hpp Twist2d and ChassisSpeeds — the velocity currencies of the motion stack.

Units

Page Header What it is
Literals units/literals.hpp User-defined literals for shulib units. Each converts to CANONICAL units at the point of writing, so the rest of the code never sees a raw unit again: distance = 24_in; field = 1_tile; dt = 20_ms; v = 12_volt;.
Quantity units/quantity.hpp Quantity<L, A, T, E, I> — compile-time dimensional analysis.

HAL — the hardware seams

Page Header What it is
Absent GPS hal/absent_gps.hpp AbsentGps — the explicit statement that THIS ROBOT HAS NO GPS, as an IGps.
Absent tag source hal/absent_tag_source.hpp AbsentTagSource — the explicit statement that THIS ROBOT HAS NO APRILTAG SOURCE (no AI Vision sensor, no coprocessor), as an ITagSource.
Absent vision hal/absent_vision.hpp AbsentVision — the explicit statement that THIS ROBOT HAS NO OBJECT/COLOR DETECTION SOURCE, as an IVision.
Battery hal/battery.hpp IBattery — the V5 battery (pros::battery) behind the HAL.
Block char sink hal/block_char_sink.hpp BlockCharSink — an ICharSink over an IBlockSink: text lines onto a block device such as the SD card.
Block sink hal/block_sink.hpp IBlockSink — where BINARY BLOCKS physically go (an SD-card file on the brain, a captured buffer in a test).
Block source hal/block_source.hpp IBlockSource — where BINARY BLOCKS come FROM (an SD-card file on the brain, a canned buffer in a test).
Brain screen hal/brain_screen.hpp IBrainScreen — the V5 BRAIN's own touch screen, as a seam.
Char sink hal/char_sink.hpp ICharSink — where formatted diagnostic BYTES physically go (a terminal, a captured string in a test, later a serial port).
Clock hal/clock.hpp IClock — the single source of "now" for the whole stack.
Controller hal/controller.hpp IController — the V5 game controller behind the HAL (chunk R1a, absorbing Phase T's T1): the INPUT half of driver control.
Controller conversion hal/controller_conversion.hpp Controller canonical conversions — the ONE place the V5 controller's raw stick range becomes shulib's canonical [-1, 1] (§7: "convert exactly once, at the edge").
Device provider hal/device_provider.hpp IDeviceProvider — devices BY PORT, and the one target-specific seam a builder needs.
Device registry hal/device_registry.hpp IDeviceRegistry — WHAT IS ACTUALLY PLUGGED INTO EACH SMART PORT.
Digital in hal/digital_in.hpp IDigitalIn — a single digital input line behind the HAL (chunk R1b): a limit switch, a bumper, a jumper — any two-state sensor on an ADI port.
Digital out hal/digital_out.hpp IDigitalOut — a single digital output line behind the HAL (chunk F1, WS7/M4): a pneumatic solenoid on the ADI ports, or any other two-state actuator.
Distance hal/distance.hpp IDistance — a distance / time-of-flight sensor (pros::Distance) behind the HAL.
Distance conversion hal/distance_conversion.hpp Distance-sensor canonical conversions — the ONE place the V5 distance sensor's millimeters become shulib's canonical inches and its raw 0–63 confidence becomes [0, 1] (§7: "convert exactly once, at the edge").
Drive geometry hal/drive_geometry.hpp DriveGeometry — ONE description of a drive side's geometry, consumed by BOTH the drive-encoder odometry and the stall cross-check.
Drivetrain description hal/drivetrain_description.hpp DrivetrainDescription — the ONE representation of a drivetrain's discovered facts.
File store hal/file_store.hpp IFileStore — the two things the brain's SD card offers that a SAFE save can be built on (chunk SAFE-SAVE Part A, 2026-09-29): read a whole named file, or replace one by truncating it.
GPS hal/gps.hpp IGps — the VEX GPS behind the HAL, reporting in shulib's CANONICAL frame (the VEX meters / clockwise-from-North convention is converted away in the hal/pros adapter via gps_conversion.hpp).
GPS conversion hal/gps_conversion.hpp GPS canonical conversions — the ONE place the VEX GPS frame becomes shulib's canonical frame (§7: "convert exactly once, at the edge").
IMU hal/imu.hpp IImu — the inertial sensor behind the HAL, reporting in shulib's CANONICAL frame (the V5's clockwise/degrees convention is converted away in the hal/pros adapter via imu_conversion.hpp, so everything above this line is CCW-positive radians).
IMU conversion hal/imu_conversion.hpp IMU canonical conversions — the ONE place the V5 inertial sensor's frame becomes shulib's canonical frame (§7: "convert exactly once, at the edge").
Line display hal/line_display.hpp ILineDisplay — where short status LINES physically go (the V5 controller's LCD; a captured fake in tests).
Mechanism hal/mechanism.hpp The mechanism device seam (chunk F1, WS7/M4): IMechanism + the two concrete compositions every VEX mechanism reduces to at the device level — a group of motors on one shaft (MotorMechanism) and a set of digital lines switching one pneumatic circuit (Pneumat…
Motor hal/motor.hpp IMotor — a single V5 smart motor behind the HAL.
Motor conversion hal/motor_conversion.hpp Motor canonical conversions — the ONE place the V5 smart motor's units become shulib's canonical units (§7: "convert exactly once, at the edge").
Motor current limit hal/motor_current_limit.hpp IMotorCurrentLimit — a V5 motor's OWN current limit, set and read back (chunk MECH-S-A, 2026-11-05; the MECH-S brief's D1 (a)).
Motor group hal/motor_group.hpp MotorGroup — N physically COUPLED motors behind ONE IMotor.
Null sink hal/null_sink.hpp NullSink — the zero-cost default ITelemetrySink (§18.1).
Optical hal/optical.hpp IOptical — a color / optical sensor (pros::Optical) behind the HAL.
Optical conversion hal/optical_conversion.hpp Optical-sensor canonical conversions — the ONE place the V5 optical sensor's raw channels become shulib's canonical ranges (§7: "convert exactly once, at the edge").
Read faults hal/read_faults.hpp IReadFaults — how many reads a SENSOR ADAPTER has SCREENED.
Rotation hal/rotation.hpp IRotation — a rotation / tracking-wheel sensor (pros::Rotation) behind the HAL.
Rotation conversion hal/rotation_conversion.hpp Rotation-sensor canonical conversions — the ONE place the V5 rotation sensor's centidegrees become shulib's canonical radians (§7: "convert exactly once, at the edge").
Telemetry sink hal/telemetry_sink.hpp ITelemetrySink — the diagnostics output seam.
Vision hal/vision.hpp IVision / ITagSource — the AI Vision seams.
Vision conversion hal/vision_conversion.hpp vision_conversion.hpp — the ONE place raw AprilTag image corners become shulib's canonical robot-relative tag pose (§7: convert exactly once, at the edge).
Vision frames hal/vision_frames.hpp IVisionFrames — the V5 AI Vision camera read a FRAME at a time.

HAL — the PROS adapters

Page Header What it is
Ai vision (PROS) hal/pros/ai_vision.hpp ProsAiVision — hal::IVisionFrames (and hal::IReadFaults, MECH-A1's channel) over the vendored PROS 4.2.2 AI Vision C API, include/pros/ai_vision.h.
Battery (PROS) hal/pros/battery.hpp ProsBattery — IBattery over the pros::battery namespace (chunk R1a): the brownout-compensation input behind the HAL.
Block sink (PROS) hal/pros/block_sink.hpp ProsBlockSink — IBlockSink over a PROS FILE* on the V5's SD card (chunk R1b): where the blackbox's binary blocks physically go.
Block source (PROS) hal/pros/block_source.hpp ProsBlockSource — IBlockSource over a PROS FILE* on the V5's SD card (chunk R3d Part 2): where the calibration record is read back from.
Brain screen (PROS) hal/pros/brain_screen.hpp ProsBrainScreen — hal::IBrainScreen over PROS's screen API.
Calibrate (PROS) hal/pros/calibrate.hpp hal/pros/calibrate — the standard "shulib Calibrate" on a V5 brain (chunk CAL1, Part A2a, 2026-10-18): the THIN shell that hands calibration::CalibrateProgram the robot's real devices.
Char sink (PROS) hal/pros/char_sink.hpp ProsCharSink, serialLine() and serialWrapped() — the V5's USB serial, where TermSink's diagnostic bytes and every program's own lines physically go (pros terminal displays them).
Clock (PROS) hal/pros/clock.hpp ProsClock — IClock over the V5's real time.
Controller (PROS) hal/pros/controller.hpp ProsController — IController over pros::Controller (chunk R1a): the driver's hands behind the HAL.
Device provider (PROS) hal/pros/device_provider.hpp ProsDeviceProvider — hal::IDeviceProvider over the real V5 adapters.
Device registry (PROS) hal/pros/device_registry.hpp ProsDeviceRegistry — IDeviceRegistry over PROS's smart-port registry.
Digital in (PROS) hal/pros/digital_in.hpp ProsDigitalIn — IDigitalIn over pros::adi::DigitalIn (chunk R1b): a limit switch / bumper line behind the HAL.
Digital out (PROS) hal/pros/digital_out.hpp ProsDigitalOut — IDigitalOut over pros::adi::DigitalOut (chunk R1b): the pneumatic solenoid line behind the HAL (F1's seam, finally on hardware).
Distance (PROS) hal/pros/distance.hpp ProsDistance — IDistance over pros::Distance (chunk R1b): the capture/dock-confirm rangefinder behind the HAL.
File store (PROS) hal/pros/file_store.hpp ProsFileStore — hal::IFileStore on the V5's SD card (chunk SAFE-SAVE Part A, 2026-09-29): the two operations the safe save builds on — read a file whole, replace it by truncating it — composed from the two adapters that already own the card, one adapter per…
GPS (PROS) hal/pros/gps.hpp ProsGps — IGps over pros::Gps (chunk R1a): the absolute-position corrector's sensor behind the HAL.
IMU (PROS) hal/pros/imu.hpp ProsImu — IImu over pros::Imu (chunk R1a): the load-bearing < 1° heading source behind the HAL.
Line display (PROS) hal/pros/line_display.hpp ProsLineDisplay — ILineDisplay over the V5 controller's LCD (chunk R1a): where the D-4 status rows physically go.
Motor (PROS) hal/pros/motor.hpp ProsMotor — IMotor over pros::Motor.
Optical (PROS) hal/pros/optical.hpp ProsOptical — IOptical over pros::Optical (chunk R1b): the game-object color/proximity confirmation sensor behind the HAL.
Rotation (PROS) hal/pros/rotation.hpp ProsRotation — IRotation over pros::Rotation (chunk R1a): the tracking-wheel pods behind the HAL.
Tick pacer (PROS) hal/pros/tick_pacer.hpp ProsTickPacer — motion::ITickPacer over pros::Task::delay_until (chunk R1a): the ONLY seam that regains control mid-motion on the robot, replacing main.cpp's V5DelayPacer (which had to hand-advance a FakeClock).
Tune (PROS) hal/pros/tune.hpp hal/pros/tune — "shulib Tune" on a V5 brain (chunk TUNE1-B1, 2026-11-10; the MECH-S/TUNE1 brief's D7 (a), §1.3): the THIN shell that hands mechanism::TuneProgram the robot's real devices.

Core

Page Header What it is
Check core/check.hpp Precondition checking for shulib core.

Spec

Page Header What it is
Accuracy spec/accuracy.hpp accuracy.hpp — the accuracy targets of Freeze Register ROW F2, the LOCKED spec the autonomous is measured against.

Top level

Page Header What it is
Version version.hpp The shulib API version — the mechanism behind the Freeze Register's promise.

Calibration

Page Header What it is
Boot check calibration/boot_check.hpp THE BOOT CHECK — is this description still true of THIS robot?
Calibrate panel calibration/calibrate_panel.hpp calibrate_panel — the calibration screen as a PURE MODEL.
Calibrate program calibration/calibrate_program.hpp calibrate_program — THE STANDARD "shulib Calibrate" (chunk CAL1, Part A2a, 2026-10-18): the robot measures its own drivetrain, for ANY team, from the few facts only a person can state.
Calibrate screen calibration/calibrate_screen.hpp calibrate_screen — how the standard Calibrate PAINTS the brain's screen.
Calibration record calibration/calibration_record.hpp The CALIBRATION RECORD — a hal::DrivetrainDescription as bytes on the SD card.
Drive characterization calibration/drive_characterization.hpp DriveCharacterization — what the GAINS and REST steps of shulib Calibrate MEASURE, as data.
Drive characterizer calibration/drive_characterizer.hpp DriveCharacterizer — shulib Calibrate's GAINS step: the robot drives itself through four short, bounded segments while each drive side's kS, kV and kA are fitted on the brain.
Drivetrain calibrator calibration/drivetrain_calibrator.hpp DrivetrainCalibrator — the robot describes its own drivetrain.
Feedforward fit calibration/feedforward_fit.hpp FeedforwardFit — kS, kV and kA of ONE drive side, fitted on the brain from that side's own run.
Front check calibration/front_check.hpp front_check — did a new calibration put the robot's FRONT at the other end?
Record store calibration/record_store.hpp The calibration record's SAFE SAVE and its LOAD (chunk SAFE-SAVE Part A, 2026-09-29): a save designed so a failure part-way does not leave the card without a good record — given HA-166 (4) and (5), short of a stated two-fault limit — a load that falls back…
Rest capture calibration/rest_capture.hpp RestCapture — shulib Calibrate's REST step: the robot sits still, unpowered, for a minute while the IMU's drift and noise, the encoders' noise at rest and the loop's timing are measured.

Competition

Page Header What it is
Acceptance run competition/acceptance_run.hpp competition::acceptanceRun — the LIBRARY's acceptance run: the one routine shulib ships.
Auton menu competition/auton_menu.hpp competition::AutonMenu — the brain-screen auton selector as a PURE MODEL.
Auton registry competition/auton_registry.hpp competition::AutonRegistry — the autons a competition program can run, as DATA.
Auton wall reset competition/auton_wall_reset.hpp competition::resetFromWall — the wall reset's EVERYDAY call, over the auton's context (chunk L6-A2, 2026-11-03; the L6 brief's D4 (a) and its §1.12 — the team lead's answers of 2026-10-22, and his ruling of 2026-11-03 that the wall reset be callable from a…
Field mirror competition/field_mirror.hpp competition::FieldMirror — ONE ROUTE, TWO ROBOTS.
Match runner competition/match_runner.hpp competition::runAuton — run ONE registered auton under a RunGuard, from its start pose to its guaranteed end.
Override mirror competition/override_mirror.hpp The 2026-27 season's SKILLS MIRROR — VEX V5RC / VEX U "Override".
Toggle visit competition/toggle_visit.hpp competition::checkAndFlipToggle — the Toggle flip for a SKILLS run, as ONE route step.

Config

Page Header What it is
Camera config config/camera_config.hpp CameraConfig — the robot file's AI VISION CAMERA block.
Robot config config/robot_config.hpp RobotConfig — a whole robot, described as DATA.
Route config/route.hpp Route — an autonomous routine as DATA.
Wall sensor config config/wall_sensor_config.hpp WallSensorsConfig — the robot file's SIDE DISTANCE SENSORS block.

Mechanism

Page Header What it is
Devices mechanism/devices.hpp mechanism/devices.hpp — the DEVICES one mechanism was built over, and what the build found for each of its ROLES.
Direction check mechanism/direction_check.hpp mechanism/direction_check.hpp — THE DIRECTION CHECK's judgement.
Driver inputs mechanism/driver_inputs.hpp mechanism/driver_inputs.hpp — THE DRIVER FILE'S MECHANISM CONTROLS: hold-to-run, toggle, preset and the homing controls, each naming its mechanism by its DECLARATION, checked at build against the robot's list, and run THROUGH the mechanism service.
Kinds mechanism/kinds.hpp mechanism/kinds.hpp — WHAT A MECHANISM IS, the way a team writes it.
Live tuning mechanism/live_tuning.hpp mechanism/live_tuning.hpp — LIVE TUNING's library half: a mechanism's numbers changed WHILE THE ROBOT RUNS, inside the same rules as the build, undone, and copied back out as the lines its robot file needs (chunk TUNE1-A, 2026-11-10; the MECH-S/TUNE1 brief'…
Route ids mechanism/route_ids.hpp mechanism/route_ids.hpp — EVERY MECHANISM'S ACTIONS AS ROUTE IDS, automatically (the mechanism core, chunk MECH-A1, 2026-10-08; the team lead's ruling of 2026-10-08, MECH-PANEL-requirements §4 item 7b: "an arm's presets as arm_stow, arm_score; an intake's i…
Service mechanism/service.hpp mechanism/service.hpp — THE MECHANISM SERVICE: one object, ticked once per control tick, that runs every mechanism's behaviour.
Spec mechanism/spec.hpp mechanism/spec.hpp — ONE MECHANISM AS DATA, and THE BUILD CHECK.
Tune panel mechanism/tune_panel.hpp mechanism/tune_panel.hpp — "shulib Tune"'s brain screen as a PURE MODEL: what each page says, where each button is, which touches mean something (chunk TUNE1-B1, 2026-11-10; the MECH-S/TUNE1 brief's D7 (a) and D8 (a), with its re-check amendments #3, #7, #8…
Tune program mechanism/tune_program.hpp mechanism/tune_program.hpp — "shulib Tune", the program that tunes a robot's MECHANISMS on the brain (chunk TUNE1-B1, 2026-11-10; the MECH-S/TUNE1 brief's D7 (a) and D8 (a), with its re-check amendments #3, #7, #8, #10 and #14).
Until mechanism/until.hpp mechanism/until.hpp — WHEN A STEP IS DONE: a power step's done-conditions.
Wiring mechanism/wiring.hpp mechanism/wiring.hpp — THE BINDING (the mechanism core, chunk MECH-A1, 2026-10-08): which port each ROLE is plugged into, a block of the robot file SEPARATE from the declarations, compiled in (P2; the team lead's Q1 (a): the binding lives only in the robot…

Robot

Page Header What it is
Mechanism parts robot/mechanism_parts.hpp robot::MechanismParts — every ROLE of every mechanism, built from the config over a device provider.
Robot robot/robot.hpp robot::Robot — a config::RobotConfig, wired.

Runner

Page Header What it is
Command registry runner/command_registry.hpp CommandRegistry — the binding from a marker's ID to the code that performs it.
Manifest runner/manifest.hpp writeManifest — the command-id vocabulary, published.
Mechanism routes runner/mechanism_routes.hpp runner/mechanism_routes.hpp — a robot's MECHANISM ROUTE IDS (mechanism/route_ids.hpp), bound to its mechanism service and registered in a route registry in ONE call (the mechanism core, chunk MECH-A4, 2026-10-22; the team lead's ruling of 2026-10-08: "every…
Path runner runner/path_runner.hpp PathRunner — the engine that EXECUTES a Route.

Teleop

Page Header What it is
Coupled side monitor teleop/coupled_side_monitor.hpp Coupled-side monitor — the fighting-motor detector for a drivetrain side whose motors are mechanically coupled through one gear train (chunk R3b Part 0b, 2026-09-10), plus the small pure pieces the drive loops need: the per-side arcade arithmetic, and the t…
Drive modes teleop/drive_modes.hpp Drive modes — the pure mappings from a driver's four stick axes to ONE body-frame DriveRequest.
Drive protection teleop/drive_protection.hpp DriveProtection — the old "shulib Drive"'s drive protections, in the library's driver loop, for every program that drives through it.
Driver control teleop/driver_control.hpp DriveShaper — the whole feel layer in one object and one call per tick.
Drivetrain degradation teleop/drivetrain_degradation.hpp Drivetrain degradation policy — what a drive program does when some of the motors it was built for do not answer.
Field centric teleop/field_centric.hpp Field-centric driving, and the honest failure mode without which it must not ship.
Input shaping teleop/input_shaping.hpp Input shaping — what a driver's raw stick deflection becomes before it is a command.
Mechanism binding teleop/mechanism_binding.hpp MechanismBinding — two controller buttons driving one motor mechanism, hold-to-run.
Slew limiter teleop/slew_limiter.hpp SlewLimiter — the optional rate limit on ONE driver axis.
Stick mapping teleop/stick_mapping.hpp Teleop stick mapping — the ONE place a driver's sticks become a body-frame drive request (chunk R3b, Session 2), and the DriveRequest/StickInput vocabulary the whole feel layer is written in.
Teleop loop teleop/teleop_loop.hpp runDriverControl — the library's driver-control loop.

Ui

Page Header What it is
Touch panel ui/touch_panel.hpp ui::touch_panel — the GENERIC pieces of a brain-screen panel model.

Vision

Page Header What it is
Camera feed vision/camera_feed.hpp CameraFeed — ONE read of the camera per period, handed to every consumer.
Camera geometry vision/camera_geometry.hpp Camera geometry — a detection's box turned into which way it is (BEARING), how high it looks (ELEVATION), how far it is (a GROUND range from where its base meets the floor, a SIZE range from its known real height) and where it is on the FIELD — every one an…
Override elements vision/override_elements.hpp The 2026-27 Override season's facts the camera code needs — the Toggle's coloured faces, where the Toggles are, the Pin and the Cup, and the class table of VEX's Override AI model.
Piece finder vision/piece_finder.hpp PieceFinder — "take THAT piece": a route names ONE game piece by its TYPE (the AI model's class) and its EXPECTED FIELD POSITION within a TOLERANCE, and the finder answers FOUND, NONE, AMBIGUOUS, NOT IN VIEW or UNKNOWN — NEVER A GUESS.
Toggle camera vision/toggle_camera.hpp ToggleCamera — the robot's camera answer for the Toggle, as an AUTON reaches it.
Toggle tracker vision/toggle_tracker.hpp ToggleTracker — WHICH COLOUR does the Toggle in front of the robot show: RED, BLUE, YELLOW, or UNKNOWN with the reason.

Every public entity, alphabetically

The alphabetical index lists all 6,509 of them with a link to each. Nested types appear under their qualified name (BlackboxReader::Frame::type), so a member of a nested type is findable by the name you would actually write.

Where the other documents fit

  • How it works teaches the ideas in order, and The API in words is the API as prose — when to reach for a verb, what it does when things go wrong, which gotchas bite. It deliberately does not restate signatures; this reference owns those.
  • Recipes answers "how do I write the routine I am writing right now", with compiled recipes.
  • This reference answers "what exactly exists, and what is its exact spelling".