mirror of https://github.com/ArduPilot/ardupilot
RC_Channel: privatise switch reading functions
This commit is contained in:
parent
d3db716dd9
commit
14ce09279f
|
@ -265,8 +265,6 @@ public:
|
||||||
SCRIPTING,
|
SCRIPTING,
|
||||||
};
|
};
|
||||||
|
|
||||||
bool read_3pos_switch(AuxSwitchPos &ret) const WARN_IF_UNUSED;
|
|
||||||
bool read_6pos_switch(int8_t& position) WARN_IF_UNUSED;
|
|
||||||
AuxSwitchPos get_aux_switch_pos() const;
|
AuxSwitchPos get_aux_switch_pos() const;
|
||||||
|
|
||||||
// wrapper function around do_aux_function which allows us to log
|
// wrapper function around do_aux_function which allows us to log
|
||||||
|
@ -355,6 +353,9 @@ private:
|
||||||
int16_t pwm_to_range() const;
|
int16_t pwm_to_range() const;
|
||||||
int16_t pwm_to_range_dz(uint16_t dead_zone) const;
|
int16_t pwm_to_range_dz(uint16_t dead_zone) const;
|
||||||
|
|
||||||
|
bool read_3pos_switch(AuxSwitchPos &ret) const WARN_IF_UNUSED;
|
||||||
|
bool read_6pos_switch(int8_t& position) WARN_IF_UNUSED;
|
||||||
|
|
||||||
// Structure used to detect and debounce switch changes
|
// Structure used to detect and debounce switch changes
|
||||||
struct {
|
struct {
|
||||||
int8_t debounce_position = -1;
|
int8_t debounce_position = -1;
|
||||||
|
|
Loading…
Reference in New Issue