Add distance sensor, rewrite OLED to use new i2c library

This commit is contained in:
2026-02-19 14:48:31 -05:00
parent 29b79fbbb5
commit 20b047bbfe
31 changed files with 3040 additions and 122 deletions

View File

@@ -19,7 +19,21 @@ struct target_text {
std::string text;
};
typedef std::variant<target_angle, current_angle, target_text> sensor_value;
struct distance {
float distance;
};
struct temperature {
float temperature;
};
struct position {
float heading;
float pitch;
float roll;
};
typedef std::variant<target_angle, current_angle, target_text, distance, temperature, position> sensor_value;
class SensorMessageBuilder {
public: