How bruin-racing-baja/daqer works
This is embedded vehicle telemetry firmware: its main loop gathers GPS, IMU and analog measurements, displays and logs them, then publishes telemetry over CAN. src/main.cpp coordinates the sampled runtime stages; src/can_bus.cpp configures FlexCAN and transmits messages. The graph preserves those distinct stages and the CAN identifiers. Some GPS-reading and logging details fall in excerpt gaps, so those relationships are omitted or marked unverified rather than inferred.
Main entry points: main.cpp Runtime coordinator · can_bus.cpp CAN bus driver · types.h Shared integer types · can_ids.h CAN telemetry IDs
Components 16
Telemetry runtime
- Runtime coordinator
src/main.cpp - RTC timebase
src/main.cpp - Shared integer types
include/types.h - Numeric helpers
include/macros.h
Sensing
- GPS input
src/main.cpp - IMU acquisition
src/main.cpp - Analog sensors
src/main.cpp - Telemetry calculations
src/main.cpp
Telemetry outputs
- OLED display
src/main.cpp - SD logger
src/main.cpp - Serial diagnostics
src/main.cpp
CAN transport
- CAN message encoding
src/main.cpp - CAN telemetry IDs
include/can_ids.h - CAN bus driver
src/can_bus.cpp
Other components
- Vehicle operator
- CAN network
Connections 16
- Vehicle operator → Runtime coordinator: initiates
- Runtime coordinator → GPS input: reads
src/main.cpp - Runtime coordinator → IMU acquisition: reads
src/main.cpp - Runtime coordinator → Analog sensors: samples
src/main.cpp - Runtime coordinator → Telemetry calculations: computes
src/main.cpp - Runtime coordinator → RTC timebase: sets time
src/main.cpp - Runtime coordinator → OLED display: updates
src/main.cpp - Runtime coordinator → SD logger: writes
src/main.cpp - Runtime coordinator → Serial diagnostics: prints
src/main.cpp - Runtime coordinator → CAN message encoding: creates messages
src/main.cpp - Runtime coordinator → CAN bus driver: sets up and sends
src/main.cpp - Runtime coordinator → CAN telemetry IDs: uses identifiers
src/main.cpp - CAN bus driver → CAN network: transmits
src/can_bus.cpp - CAN bus driver → Shared integer types: uses
src/can_bus.cpp - CAN telemetry IDs → Shared integer types: uses
include/can_ids.h - Numeric helpers → Shared integer types: uses
include/macros.h