mirror of
https://github.com/BotChain-Robots/firmware.git
synced 2026-07-08 17:47:21 +02:00
25 lines
456 B
C++
25 lines
456 B
C++
//
|
|
// Created by Johnathon Slightham on 2025-07-15.
|
|
//
|
|
|
|
// 180 deg servo
|
|
|
|
#ifndef SERVO1ACTUATOR_H
|
|
#define SERVO1ACTUATOR_H
|
|
|
|
#include "IActuator.h"
|
|
#include "ISensor.h"
|
|
#include <cstdint>
|
|
|
|
class Servo1Actuator final : public IActuator {
|
|
public:
|
|
Servo1Actuator();
|
|
void actuate(std::uint8_t *cmd) override;
|
|
std::vector<Flatbuffers::sensor_value> get_sensor_data() override;
|
|
|
|
private:
|
|
uint16_t m_target = 90;
|
|
};
|
|
|
|
#endif //SERVO1ACTUATOR_H
|