mirror of https://github.com/ArduPilot/ardupilot
39 lines
1.1 KiB
C++
39 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include <GCS_MAVLink/GCS.h>
|
|
#include "GCS_Mavlink.h"
|
|
|
|
class GCS_Rover : public GCS
|
|
{
|
|
friend class Rover; // for access to _chan in parameter declarations
|
|
|
|
public:
|
|
|
|
// the following define expands to a pair of methods to retrieve a
|
|
// pointer to an object of the correct subclass for the link at
|
|
// offset ofs. These are of the form:
|
|
// GCS_MAVLINK_XXXX *chan(const uint8_t ofs) override;
|
|
// const GCS_MAVLINK_XXXX *chan(const uint8_t ofs) override const;
|
|
GCS_MAVLINK_CHAN_METHOD_DEFINITIONS(GCS_MAVLINK_Rover);
|
|
|
|
uint32_t custom_mode() const override;
|
|
MAV_TYPE frame_type() const override;
|
|
|
|
bool vehicle_initialised() const override;
|
|
|
|
void update_vehicle_sensor_status_flags(void) override;
|
|
|
|
bool simple_input_active() const override;
|
|
bool supersimple_input_active() const override;
|
|
|
|
protected:
|
|
|
|
uint8_t sysid_this_mav() const override;
|
|
|
|
GCS_MAVLINK_Rover *new_gcs_mavlink_backend(GCS_MAVLINK_Parameters ¶ms,
|
|
AP_HAL::UARTDriver &uart) override {
|
|
return NEW_NOTHROW GCS_MAVLINK_Rover(params, uart);
|
|
}
|
|
|
|
};
|