Loading files
d3ac8f592This file is pinned to the selected release. Download the original to open it in your design tool.
// Copyright 2026 Filip Dymczyk and Konrad Grucel
#pragma once
#include <stdint.h>
namespace Robot_Control
{
struct Telemetry_Sample
{
uint32_t timestamp_us;
float distance_setpoint;
float distance_m;
float balance_setpoint;
float balance_angle;
float rotation_setpoint;
float rotation_angle;
float target_speed_0;
float target_speed_1;
float measured_speed_0;
float measured_speed_1;
float pwm_0;
float pwm_1;
};
static_assert(sizeof(Telemetry_Sample) == (sizeof(uint32_t) + (12 * sizeof(float))));
void
telemetry_submit(Telemetry_Sample const& sample);
} // namespace Robot_Control