Browse Source

RC_Channel: fix auxiliary typo

apm_2208
Mirko Denecke 3 years ago committed by Peter Barker
parent
commit
60b0be4a97
  1. 6
      libraries/RC_Channel/RC_Channel.cpp
  2. 4
      libraries/RC_Channel/RC_Channel.h
  3. 2
      libraries/RC_Channel/RC_Channels.cpp

6
libraries/RC_Channel/RC_Channel.cpp

@ -396,7 +396,7 @@ float RC_Channel::stick_mixing(const float servo_in)
} }
// //
// support for auxillary switches: // support for auxiliary switches:
// //
void RC_Channel::reset_mode_switch() void RC_Channel::reset_mode_switch()
@ -463,7 +463,7 @@ bool RC_Channel::debounce_completed(int8_t position)
} }
// //
// support for auxillary switches: // support for auxiliary switches:
// //
// init_aux_switch_function - initialize aux functions // init_aux_switch_function - initialize aux functions
@ -909,7 +909,7 @@ bool RC_Channel::run_aux_function(aux_func_t ch_option, AuxSwitchPos pos, AuxFun
// @Field: TimeUS: Time since system startup // @Field: TimeUS: Time since system startup
// @Field: function: ID of triggered function // @Field: function: ID of triggered function
// @Field: pos: switch position when function triggered // @Field: pos: switch position when function triggered
// @Field: source: source of auxillary function invocation // @Field: source: source of auxiliary function invocation
// @Field: result: true if function was successful // @Field: result: true if function was successful
AP::logger().Write( AP::logger().Write(
"AUXF", "AUXF",

4
libraries/RC_Channel/RC_Channel.h

@ -249,7 +249,7 @@ public:
}; };
typedef enum AUX_FUNC aux_func_t; typedef enum AUX_FUNC aux_func_t;
// auxillary switch handling (n.b.: we store this as 2-bits!): // auxiliary switch handling (n.b.: we store this as 2-bits!):
enum class AuxSwitchPos : uint8_t { enum class AuxSwitchPos : uint8_t {
LOW, // indicates auxiliary switch is in the low position (pwm <1200) LOW, // indicates auxiliary switch is in the low position (pwm <1200)
MIDDLE, // indicates auxiliary switch is in the middle position (pwm >1200, <1800) MIDDLE, // indicates auxiliary switch is in the middle position (pwm >1200, <1800)
@ -546,7 +546,7 @@ public:
uint32_t last_input_ms() const { return last_update_ms; }; uint32_t last_input_ms() const { return last_update_ms; };
// method for other parts of the system (e.g. Button and mavlink) // method for other parts of the system (e.g. Button and mavlink)
// to trigger auxillary functions // to trigger auxiliary functions
bool run_aux_function(RC_Channel::AUX_FUNC ch_option, RC_Channel::AuxSwitchPos pos, RC_Channel::AuxFuncTriggerSource source) { bool run_aux_function(RC_Channel::AUX_FUNC ch_option, RC_Channel::AuxSwitchPos pos, RC_Channel::AuxFuncTriggerSource source) {
return rc_channel(0)->run_aux_function(ch_option, pos, source); return rc_channel(0)->run_aux_function(ch_option, pos, source);
} }

2
libraries/RC_Channel/RC_Channels.cpp

@ -148,7 +148,7 @@ bool RC_Channels::receiver_bind(const int dsmMode)
} }
// support for auxillary switches: // support for auxiliary switches:
// read_aux_switches - checks aux switch positions and invokes configured actions // read_aux_switches - checks aux switch positions and invokes configured actions
void RC_Channels::read_aux_all() void RC_Channels::read_aux_all()
{ {

Loading…
Cancel
Save