mirror of
https://github.com/BotChain-Robots/firmware.git
synced 2026-07-08 17:47:21 +02:00
Add distance sensor, rewrite OLED to use new i2c library
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user