mirror of
https://github.com/BotChain-Robots/firmware.git
synced 2026-07-08 09:37:21 +02:00
Servo control
This commit is contained in:
16
main/control/ActuatorFactory.cpp
Normal file
16
main/control/ActuatorFactory.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// Created by Johnathon Slightham on 2025-07-15.
|
||||
//
|
||||
|
||||
#include "control/ActuatorFactory.h"
|
||||
|
||||
#include <control/Servo1Actuator.h>
|
||||
|
||||
std::unique_ptr<IActuator> ActuatorFactory::create_actuator(ModuleType type) {
|
||||
switch (type) {
|
||||
case ModuleType_SERVO_1:
|
||||
return std::make_unique<Servo1Actuator>();
|
||||
default:
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user