CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/ArduSub/RC_Channel_Sub.h
Views: 1798
1
#pragma once
2
3
#include <RC_Channel/RC_Channel.h>
4
5
class RC_Channel_Sub : public RC_Channel
6
{
7
8
public:
9
10
protected:
11
12
private:
13
14
};
15
16
class RC_Channels_Sub : public RC_Channels
17
{
18
public:
19
20
RC_Channel_Sub obj_channels[NUM_RC_CHANNELS];
21
RC_Channel_Sub *channel(const uint8_t chan) override {
22
if (chan >= NUM_RC_CHANNELS) {
23
return nullptr;
24
}
25
return &obj_channels[chan];
26
}
27
28
// tell the gimbal code all is good with RC input:
29
bool in_rc_failsafe() const override { return false; };
30
31
protected:
32
33
// note that these callbacks are not presently used on Plane:
34
int8_t flight_mode_channel_number() const override;
35
36
};
37
38