Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/master/ArduCopter/GCS_Copter.h
Views: 1798
#pragma once12#include <GCS_MAVLink/GCS.h>3#include "GCS_MAVLink_Copter.h"45class GCS_Copter : public GCS6{7friend class Copter; // for access to _chan in parameter declarations89public:1011// the following define expands to a pair of methods to retrieve a12// pointer to an object of the correct subclass for the link at13// offset ofs. These are of the form:14// GCS_MAVLINK_XXXX *chan(const uint8_t ofs) override;15// const GCS_MAVLINK_XXXX *chan(const uint8_t ofs) override const;16GCS_MAVLINK_CHAN_METHOD_DEFINITIONS(GCS_MAVLINK_Copter);1718void update_vehicle_sensor_status_flags(void) override;1920uint32_t custom_mode() const override;21MAV_TYPE frame_type() const override;2223const char* frame_string() const override;2425bool vehicle_initialised() const override;2627bool simple_input_active() const override;28bool supersimple_input_active() const override;2930uint8_t sysid_this_mav() const override;3132protected:333435// minimum amount of time (in microseconds) that must remain in36// the main scheduler loop before we are allowed to send any37// mavlink messages. We want to prioritise the main flight38// control loop over communications39uint16_t min_loop_time_remaining_for_message_send_us() const override {40return 250;41}4243GCS_MAVLINK_Copter *new_gcs_mavlink_backend(GCS_MAVLINK_Parameters ¶ms,44AP_HAL::UARTDriver &uart) override {45return NEW_NOTHROW GCS_MAVLINK_Copter(params, uart);46}4748};495051