1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- #pragma once
- #include <AP_HAL/AP_HAL.h>
- #include <AP_AHRS/AP_AHRS.h>
- #include <AP_Math/AP_Math.h>
- #include <AP_Common/AP_Common.h>
- #include <RC_Channel/RC_Channel.h>
- #include "AP_Mount_Backend.h"
- #define AP_MOUNT_STORM32_RESEND_MS 1000
- #define AP_MOUNT_STORM32_SEARCH_MS 60000
- class AP_Mount_SToRM32 : public AP_Mount_Backend
- {
- public:
-
- AP_Mount_SToRM32(AP_Mount &frontend, AP_Mount::mount_state &state, uint8_t instance);
-
- void init() override {}
-
- void update() override;
-
- bool has_pan_control() const override;
-
- void set_mode(enum MAV_MOUNT_MODE mode) override;
-
- void send_mount_status(mavlink_channel_t chan) override;
- private:
-
- void find_gimbal();
-
- void send_do_mount_control(float pitch_deg, float roll_deg, float yaw_deg, enum MAV_MOUNT_MODE mount_mode);
-
- bool _initialised;
- uint8_t _sysid;
- uint8_t _compid;
- mavlink_channel_t _chan;
- uint32_t _last_send;
- };
|