25 lines
529 B
C++
Executable File
25 lines
529 B
C++
Executable File
#pragma once
|
|
#include "UartHandler.hpp"
|
|
#include "AdafruitPWMBoard.hpp"
|
|
#include"AdafruitServoMotor.hpp"
|
|
|
|
// Singleton-instance
|
|
class MainLoop
|
|
{
|
|
public:
|
|
void setup() noexcept;
|
|
void update() noexcept;
|
|
|
|
static MainLoop& getInstance() noexcept;
|
|
|
|
private:
|
|
MainLoop(const MainLoop&) = delete;
|
|
MainLoop(MainLoop&&) = delete;
|
|
|
|
MainLoop() noexcept;
|
|
~MainLoop() noexcept;
|
|
|
|
AdafruitPWMBoard pwmBoard;
|
|
AdafruitServoMotor motors[6];
|
|
};
|