mirror of
https://github.com/BotChain-Robots/control.git
synced 2026-03-09 16:22:26 +01:00
33 lines
910 B
C++
33 lines
910 B
C++
//
|
|
// Created by Johnathon Slightham on 2026-01-13.
|
|
//
|
|
|
|
#ifndef CONTROL_HUB_H
|
|
#define CONTROL_HUB_H
|
|
|
|
#include "Module.h"
|
|
#include "flatbuffers/SensorMessageBuilder.h"
|
|
|
|
class Hub final : public Module {
|
|
|
|
public:
|
|
explicit Hub(uint8_t device_id) : Module(device_id) {};
|
|
|
|
Hub(uint8_t device_id, ModuleType module_type)
|
|
: Module(device_id, module_type) {};
|
|
|
|
Hub(uint8_t device_id, ModuleType module_type,
|
|
Messaging::ConnectionType connection_type, uint8_t leader)
|
|
: Module(device_id, module_type, connection_type, leader) {};
|
|
|
|
double get_position() override;
|
|
std::string get_text() override;
|
|
void actuate(double position) override;
|
|
void actuate(double x, double y) override;
|
|
void actuate(const std::string &t) override;
|
|
std::vector<uint8_t> get_actuation_message() override;
|
|
void update_sensor_data(const Flatbuffers::sensor_value &value) override;
|
|
};
|
|
|
|
#endif // CONTROL_HUB_H
|