APM:Copter
ArduCopter
GCS_Copter.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
GCS_MAVLink/GCS.h
>
4
#include "
GCS_Mavlink.h
"
5
6
class
GCS_Copter
:
public
GCS
7
{
8
friend
class
Copter
;
// for access to _chan in parameter declarations
9
10
public
:
11
12
// return the number of valid GCS objects
13
uint8_t
num_gcs
()
const override
{
return
ARRAY_SIZE
(
_chan
); };
14
15
// return GCS link at offset ofs
16
GCS_MAVLINK_Copter
&
chan
(
const
uint8_t ofs)
override
{
17
return
_chan
[ofs];
18
};
19
const
GCS_MAVLINK_Copter
&
chan
(
const
uint8_t ofs)
const override
{
20
return
_chan
[ofs];
21
};
22
23
private
:
24
25
GCS_MAVLINK_Copter
_chan
[
MAVLINK_COMM_NUM_BUFFERS
];
26
27
};
GCS_Mavlink.h
GCS.h
Copter
Definition:
Copter.h:180
GCS_MAVLINK_Copter
Definition:
GCS_Mavlink.h:8
GCS
GCS_Copter::chan
const GCS_MAVLINK_Copter & chan(const uint8_t ofs) const override
Definition:
GCS_Copter.h:19
GCS_Copter::chan
GCS_MAVLINK_Copter & chan(const uint8_t ofs) override
Definition:
GCS_Copter.h:16
ARRAY_SIZE
#define ARRAY_SIZE(_arr)
GCS_Copter::_chan
GCS_MAVLINK_Copter _chan[MAVLINK_COMM_NUM_BUFFERS]
Definition:
GCS_Copter.h:21
GCS_Copter
Definition:
GCS_Copter.h:6
GCS_Copter::num_gcs
uint8_t num_gcs() const override
Definition:
GCS_Copter.h:13
MAVLINK_COMM_NUM_BUFFERS
#define MAVLINK_COMM_NUM_BUFFERS
Generated on Sun Jun 17 2018 14:37:56 for APM:Copter by
1.8.13