Firmware: OmniBotController skeleton

This commit is contained in:
2025-07-05 00:48:13 -03:00
parent 3f59ea60aa
commit 00637f9108
2 changed files with 56 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
/*
* OmniBotController.cpp
*
* Created on: Jun 29, 2025
* Author: Gabriel
*/
#include "OmniBotController.hpp"
OmniBotController::OmniBotController(std::array<MotorPID*, 4> motors) :
Executable(Log::Level::Debug, "OmniBotController"),
motors(motors)
{
}
OmniBotController::~OmniBotController() {
}
int32_t OmniBotController::init() {
return 0;
}
int32_t OmniBotController::execute() {
while(true){
}
return 0;
}

View File

@@ -0,0 +1,26 @@
/*
* OmniBotController.hpp
*
* Created on: Jun 29, 2025
* Author: Gabriel
*/
#ifndef COMPONENTS_OMNIBOTCONTROLLER_OMNIBOTCONTROLLER_HPP_
#define COMPONENTS_OMNIBOTCONTROLLER_OMNIBOTCONTROLLER_HPP_
#include <Executable.hpp>
#include <MotorPID.hpp>
#include <array>
class OmniBotController : public Executable {
public:
OmniBotController(std::array<MotorPID*, 4> motors);
virtual ~OmniBotController();
int32_t init();
int32_t execute();
private:
std::array<MotorPID*, 4> motors;
};
#endif /* COMPONENTS_OMNIBOTCONTROLLER_OMNIBOTCONTROLLER_HPP_ */