You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.3 KiB
49 lines
1.3 KiB
8 years ago
|
#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:
|
||
|
|
||
|
// return GCS link at offset ofs
|
||
6 years ago
|
GCS_MAVLINK_Rover *chan(const uint8_t ofs) override {
|
||
|
if (ofs > _num_gcs) {
|
||
6 years ago
|
AP::internalerror().error(AP_InternalError::error_t::gcs_offset);
|
||
6 years ago
|
return nullptr;
|
||
6 years ago
|
}
|
||
6 years ago
|
return (GCS_MAVLINK_Rover*)_chan[ofs];
|
||
6 years ago
|
}
|
||
8 years ago
|
// return GCS link at offset ofs
|
||
6 years ago
|
const GCS_MAVLINK_Rover *chan(const uint8_t ofs) const override {
|
||
|
if (ofs > _num_gcs) {
|
||
6 years ago
|
AP::internalerror().error(AP_InternalError::error_t::gcs_offset);
|
||
6 years ago
|
return nullptr;
|
||
6 years ago
|
}
|
||
6 years ago
|
return (GCS_MAVLINK_Rover*)_chan[ofs];
|
||
6 years ago
|
}
|
||
8 years ago
|
|
||
6 years ago
|
uint32_t custom_mode() const override;
|
||
|
MAV_TYPE frame_type() const override;
|
||
|
|
||
6 years ago
|
bool vehicle_initialised() const override;
|
||
|
|
||
6 years ago
|
void update_vehicle_sensor_status_flags(void) override;
|
||
6 years ago
|
|
||
6 years ago
|
bool simple_input_active() const override;
|
||
|
bool supersimple_input_active() const override;
|
||
|
|
||
6 years ago
|
protected:
|
||
8 years ago
|
|
||
5 years ago
|
uint8_t sysid_this_mav() const override;
|
||
|
|
||
6 years ago
|
GCS_MAVLINK_Rover *new_gcs_mavlink_backend(GCS_MAVLINK_Parameters ¶ms,
|
||
|
AP_HAL::UARTDriver &uart) override {
|
||
|
return new GCS_MAVLINK_Rover(params, uart);
|
||
|
}
|
||
8 years ago
|
|
||
|
};
|