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/AntennaTracker/RC_Channel_Tracker.h
Views: 1798
1
#pragma once
2
3
#include <RC_Channel/RC_Channel.h>
4
5
class RC_Channel_Tracker : public RC_Channel
6
{
7
8
public:
9
10
protected:
11
12
private:
13
14
};
15
16
class RC_Channels_Tracker : public RC_Channels
17
{
18
public:
19
20
RC_Channel_Tracker obj_channels[NUM_RC_CHANNELS];
21
RC_Channel_Tracker *channel(const uint8_t chan) override {
22
if (chan >= NUM_RC_CHANNELS) {
23
return nullptr;
24
}
25
return &obj_channels[chan];
26
}
27
28
// we always trust our RC inputs ATM:
29
bool in_rc_failsafe() const override { return false; }
30
31
protected:
32
33
// note that these callbacks are not presently used on Tracker:
34
int8_t flight_mode_channel_number() const override;
35
36
};
37
38