RC_Channel.cpp 498 B

1234567891011121314151617
  1. #include "Sub.h"
  2. #include "RC_Channel.h"
  3. // defining these two macros and including the RC_Channels_VarInfo
  4. // header defines the parameter information common to all vehicle
  5. // types
  6. #define RC_CHANNELS_SUBCLASS RC_Channels_Sub
  7. #define RC_CHANNEL_SUBCLASS RC_Channel_Sub
  8. #include <RC_Channel/RC_Channels_VarInfo.h>
  9. // note that this callback is not presently used on Plane:
  10. int8_t RC_Channels_Sub::flight_mode_channel_number() const
  11. {
  12. return 1; // sub does not have a flight mode channel
  13. }