RC_Channel: added comment on odd inheritance

This commit is contained in:
Andrew Tridgell 2019-12-19 14:52:33 +11:00
parent f3dfd62f32
commit 6ff303adf4
1 changed files with 3 additions and 1 deletions

View File

@ -294,6 +294,8 @@ public:
}
//end compatability functions for Plane
// this function is implemented in the child class in the vehicle
// code
virtual RC_Channel *channel(uint8_t chan) = 0;
uint8_t get_radio_in(uint16_t *chans, const uint8_t num_channels); // reads a block of chanel radio_in values starting from channel 0
@ -367,7 +369,7 @@ private:
AP_Float _override_timeout;
AP_Int32 _options;
// flight_mode_channel_number must be overridden:
// flight_mode_channel_number must be overridden in vehicle specific code
virtual int8_t flight_mode_channel_number() const = 0;
RC_Channel *flight_mode_channel();