mirror of
https://github.com/BotChain-Robots/firmware.git
synced 2026-07-08 17:47:21 +02:00
31 lines
583 B
C++
31 lines
583 B
C++
//
|
|
// Created by Johnathon Slightham on 2025-07-05.
|
|
//
|
|
|
|
#ifndef LOOPMANAGER_H
|
|
#define LOOPMANAGER_H
|
|
|
|
#include <memory>
|
|
|
|
#include <MessagingInterface.h>
|
|
|
|
#include "control/IActuator.h"
|
|
#include "control/ActuatorFactory.h"
|
|
|
|
class LoopManager {
|
|
public:
|
|
LoopManager() : m_messaging_interface(std::make_unique<MessagingInterface>(std::make_unique<WifiManager>())) {}
|
|
[[noreturn]] void control_loop() const;
|
|
[[noreturn]] static void metadata_tx_loop(char * args);
|
|
|
|
private:
|
|
std::unique_ptr<MessagingInterface> m_messaging_interface;
|
|
|
|
private:
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //LOOPMANAGER_H
|