mirror of
https://github.com/BotChain-Robots/control.git
synced 2026-03-09 16:22:26 +01:00
27 lines
717 B
C++
27 lines
717 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) {};
|
|
|
|
std::vector<uint8_t> get_actuation_message() override;
|
|
void update_sensor_data(const Flatbuffers::sensor_value &value) override;
|
|
};
|
|
|
|
#endif // CONTROL_HUB_H
|