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.
33 lines
549 B
33 lines
549 B
#pragma once |
|
|
|
#include <RC_Channel/RC_Channel.h> |
|
|
|
class RC_Channel_Sub : public RC_Channel |
|
{ |
|
|
|
public: |
|
|
|
protected: |
|
|
|
private: |
|
|
|
}; |
|
|
|
class RC_Channels_Sub : public RC_Channels |
|
{ |
|
public: |
|
|
|
RC_Channel_Sub obj_channels[NUM_RC_CHANNELS]; |
|
RC_Channel_Sub *channel(const uint8_t chan) override { |
|
if (chan > NUM_RC_CHANNELS) { |
|
return nullptr; |
|
} |
|
return &obj_channels[chan]; |
|
} |
|
|
|
protected: |
|
|
|
// note that these callbacks are not presently used on Plane: |
|
int8_t flight_mode_channel_number() const override; |
|
|
|
};
|
|
|