12345678910111213141516171819202122232425262728293031323334353637383940 |
- #pragma once
- #include <AP_Winch/AP_Winch_Backend.h>
- #include <SRV_Channel/SRV_Channel.h>
- class AP_Winch_Servo : public AP_Winch_Backend {
- public:
- AP_Winch_Servo(struct AP_Winch::Backend_Config &_config) :
- AP_Winch_Backend(_config) { }
-
- void init(const AP_WheelEncoder* wheel_encoder) override;
-
- void update() override;
- private:
-
- const AP_WheelEncoder* _wheel_encoder;
- uint32_t last_update_ms;
- bool limit_high;
- bool limit_low;
- };
|