mirror of
https://github.com/BotChain-Robots/firmware.git
synced 2026-07-08 17:47:21 +02:00
Sensor data implementation
This commit is contained in:
@@ -3,19 +3,20 @@
|
||||
#ifndef DCMOTORACTUATOR_H
|
||||
#define DCMOTORACTUATOR_H
|
||||
|
||||
#include "IActuator.h"
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "freertos/task.h"
|
||||
#include "IActuator.h"
|
||||
|
||||
class DCMotorActuator final : public IActuator {
|
||||
public:
|
||||
public:
|
||||
DCMotorActuator();
|
||||
~DCMotorActuator() override;
|
||||
void actuate(uint8_t *cmd) override;
|
||||
std::vector<Flatbuffers::SensorValueInstance> get_sensor_data() override;
|
||||
private:
|
||||
std::vector<Flatbuffers::sensor_value> get_sensor_data() override;
|
||||
|
||||
private:
|
||||
void setup_encoder();
|
||||
static void pid_task(char* args);
|
||||
static void pid_task(char *args);
|
||||
|
||||
double m_current_angle;
|
||||
int64_t m_target_angle;
|
||||
|
||||
Reference in New Issue
Block a user