Firmware: OmniBotController skeleton
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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_ */
|
||||
Reference in New Issue
Block a user