Skip to content

File MotorDriver.h

File List > Drivers > MotorDriver > MotorDriver.h

Go to the documentation of this file


#pragma once
#ifdef ARDUINO_ARCH_STM32

#include <Arduino.h>

namespace OpenSkyhawk {

class MotorDriver {
public:
    virtual ~MotorDriver() = default;

    virtual void configure() = 0;

    virtual void home() = 0;

    virtual void moveTo(int32_t pos) = 0;

    virtual void update() = 0;

    virtual int32_t position() const = 0;
};

} // namespace OpenSkyhawk

#endif // ARDUINO_ARCH_STM32