Line data Source code
1 : #pragma once 2 : 3 : #include <GCS_MAVLink/GCS.h> 4 : #include "GCS_MAVLink_Plane.h" 5 : 6 : class GCS_Plane : public GCS 7 : { 8 : friend class Plane; // for access to _chan in parameter declarations 9 : 10 : public: 11 : 12 : // the following define expands to a pair of methods to retrieve a 13 : // pointer to an object of the correct subclass for the link at 14 : // offset ofs. These are of the form: 15 : // GCS_MAVLINK_XXXX *chan(const uint8_t ofs) override; 16 : // const GCS_MAVLINK_XXXX *chan(const uint8_t ofs) override const; 17 287560995 : GCS_MAVLINK_CHAN_METHOD_DEFINITIONS(GCS_MAVLINK_Plane); 18 : 19 : protected: 20 : 21 : void update_vehicle_sensor_status_flags(void) override; 22 : uint32_t custom_mode() const override; 23 : MAV_TYPE frame_type() const override; 24 : 25 2076 : GCS_MAVLINK_Plane *new_gcs_mavlink_backend(AP_HAL::UARTDriver &uart) override { 26 2076 : return NEW_NOTHROW GCS_MAVLINK_Plane(uart); 27 : } 28 : 29 520721 : AP_GPS_FixType min_status_for_gps_healthy() const override { 30 : // NO_FIX simply excludes NO_GPS 31 520721 : return AP_GPS_FixType::FIX_3D; 32 : } 33 : };