Browse Source
This also adds a patch to set up gcs channel 0 early to make BoardConfig happymission-4.1.18
7 changed files with 57 additions and 37 deletions
@ -0,0 +1,11 @@
@@ -0,0 +1,11 @@
|
||||
#include "GCS_Sub.h" |
||||
#include "Sub.h" |
||||
|
||||
bool GCS_Sub::cli_enabled() const |
||||
{ |
||||
return false; |
||||
} |
||||
|
||||
AP_HAL::BetterStream* GCS_Sub::cliSerial() { |
||||
return NULL; |
||||
} |
@ -0,0 +1,27 @@
@@ -0,0 +1,27 @@
|
||||
#pragma once |
||||
|
||||
#include <GCS_MAVLink/GCS.h> |
||||
#include "GCS_Mavlink.h" |
||||
|
||||
class GCS_Sub : public GCS |
||||
{ |
||||
friend class Sub; // for access to _chan in parameter declarations
|
||||
|
||||
public: |
||||
|
||||
// return the number of valid GCS objects
|
||||
uint8_t num_gcs() const override { return ARRAY_SIZE(_chan); }; |
||||
|
||||
// return GCS link at offset ofs
|
||||
GCS_MAVLINK_Sub &chan(const uint8_t ofs) override { |
||||
return _chan[ofs]; |
||||
}; |
||||
|
||||
private: |
||||
|
||||
GCS_MAVLINK_Sub _chan[MAVLINK_COMM_NUM_BUFFERS]; |
||||
|
||||
bool cli_enabled() const override; |
||||
AP_HAL::BetterStream* cliSerial() override; |
||||
|
||||
}; |
Loading…
Reference in new issue