Files
BrushedPIDDriver/Firmware/Application/Components/TelemetryPacket.hpp

23 lines
527 B
C++

/*
* TelemetryPacket.hpp
*
* Created on: Dec 27, 2025
* Author: Gabriel
*/
#ifndef COMPONENTS_TELEMETRYPACKET_HPP_
#define COMPONENTS_TELEMETRYPACKET_HPP_
#include <cinttypes>
class __attribute__((packed)) TelemetryPacket {
public:
uint8_t report_id = 0x01;
uint32_t counter; // Increments every send
uint32_t timestamp_ms; // HAL_GetTick() value
char message[32]; // Text message
uint8_t padding[23]; // Pad to 63 bytes
};
#endif /* COMPONENTS_TELEMETRYPACKET_HPP_ */