Path: blob/master/libraries/AC_PrecLand/AC_PrecLand_MAVLink.h
4182 views
#pragma once12#include "AC_PrecLand_config.h"34#if AC_PRECLAND_MAVLINK_ENABLED56#include "AC_PrecLand_Backend.h"7#include <AP_Math/AP_Math.h>89/*10* AC_PrecLand_MAVLink - implements precision landing using target vectors provided11* by a companion computer (i.e. Odroid) communicating via MAVLink12* The companion computer must provide "Line-Of-Sight" measurements13* in the form of LANDING_TARGET mavlink messages.14*/1516class AC_PrecLand_MAVLink : public AC_PrecLand_Backend17{18public:19// Constructor20using AC_PrecLand_Backend::AC_PrecLand_Backend;2122// perform any required initialisation of backend23void init() override;2425// retrieve updates from sensor26void update() override;2728// parses a mavlink message from the companion computer29void handle_msg(const mavlink_landing_target_t &packet, uint32_t timestamp_ms) override;3031private:32bool _wrong_frame_msg_sent;33};343536#endif // AC_PRECLAND_MAVLINK_ENABLED373839