How team4205/projectnitro works
This is a PROS-based VEX robot application with custom match recording and playback. The visible workflow initializes robot services and recording, accepts operator input to drive or start/stop a match recording, and exposes a recording-selection menu; replay support is present in the project. The source excerpts show only parts of that workflow, so links to unsampled control modes and hardware interactions are omitted rather than inferred.
Main entry points: recorder.hpp Recorder · Storage.hpp SD storage · main.cpp Lifecycle hooks · replayer.hpp Replayer
Components 16
Robot control
- Lifecycle hooks
src/main.cpp - Operator control
src/main.cpp - Autonomous mode
src/main.cpp - Robot actions
src/actions.cpp - Robot profiles
src/profiles.cpp - Robot hooks
src/hooks.cpp
Match recording
- Recorder
include/nitrogen/recordnreplay/recorder.hpp - Replayer
include/nitrogen/recordnreplay/replayer.hpp - Record codec
include/nitrogen/recordnreplay/codec.hpp - SD storage
include/nitrogen/Storage.hpp - Recording menu
src/main.cpp
PROS platform
- Motor groups
include/pros/motor_group.hpp - PROS API
include/api.h
Other components
- Operator
- VEX controller
- SD card
Connections 14
- Operator → Operator control: controls
- Lifecycle hooks → SD storage: updates run ID
src/main.cpp - Lifecycle hooks → Recorder: initializes recording
src/main.cpp - Lifecycle hooks → Recorder: attaches controller
src/main.cpp - Recording menu → Recorder: starts or stops
src/main.cpp - Recorder → SD storage: writes recordings
include/nitrogen/recordnreplay/recorder.hpp - Replayer → SD storage: reads recordings
- Recorder → Record codec: encodes frames
include/nitrogen/recordnreplay/recorder.hpp - Replayer → Record codec: decodes frames
include/nitrogen/recordnreplay/replayer.hpp - Operator control → VEX controller: reads input
- Recorder → VEX controller: samples input
- Operator control → Motor groups: commands motors
- Motor groups → PROS API: uses motor API
include/pros/motor_group.hpp - SD storage → SD card: reads and writes
include/nitrogen/Storage.hpp