123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- #pragma once
- #include <AP_HAL/AP_HAL.h>
- #include <AP_AHRS/AP_AHRS.h>
- #if AP_AHRS_NAVEKF_AVAILABLE
- #include <AP_Math/AP_Math.h>
- #include <AP_Common/AP_Common.h>
- #include <GCS_MAVLink/GCS_MAVLink.h>
- #include <RC_Channel/RC_Channel.h>
- #include "AP_Mount_Backend.h"
- #include "SoloGimbal.h"
- class AP_Mount_SoloGimbal : public AP_Mount_Backend
- {
- public:
-
- AP_Mount_SoloGimbal(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;
-
- void handle_gimbal_report(mavlink_channel_t chan, const mavlink_message_t &msg) override;
- void handle_gimbal_torque_report(mavlink_channel_t chan, const mavlink_message_t &msg);
- void handle_param_value(const mavlink_message_t &msg) override;
-
- void send_gimbal_report(mavlink_channel_t chan) override;
- void update_fast() override;
- private:
-
- bool _initialised;
-
- void Log_Write_Gimbal(SoloGimbal &gimbal);
- bool _params_saved;
- SoloGimbal _gimbal;
- };
- #endif
|