diff --git a/libraries/RC_Channel/RC_Channel.cpp b/libraries/RC_Channel/RC_Channel.cpp index 2e328d3641..8f96b03d70 100644 --- a/libraries/RC_Channel/RC_Channel.cpp +++ b/libraries/RC_Channel/RC_Channel.cpp @@ -18,6 +18,7 @@ #define RC_CHANNEL_RANGE 1 #define RC_CHANNEL_ANGLE_RAW 2 + // setup the control preferences void RC_Channel::set_range(int low, int high) @@ -53,10 +54,13 @@ RC_Channel::set_filter(bool filter) { _filter = filter; } + void RC_Channel::set_type(uint8_t t) { _type = t; + //Serial.print("type1: "); + //Serial.println(t,DEC); } // call after first read diff --git a/libraries/RC_Channel/RC_Channel.h b/libraries/RC_Channel/RC_Channel.h index d3da17b63f..0a4bab0038 100644 --- a/libraries/RC_Channel/RC_Channel.h +++ b/libraries/RC_Channel/RC_Channel.h @@ -98,7 +98,7 @@ class RC_Channel{ bool _filter; int8_t _reverse; - bool _type; + uint8_t _type; int16_t _high; int16_t _low; };