mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-05 07:28:29 -04:00
d16659331f
Further to refactor of RC_Channel class which included adding get_xx set_xx methods, some methods names are now in conflict with those in the derived RC_Channel_aux class. To keep a uniform naming convention in RC_Channel where functions are most used and most numerous, the offending functions in RC_Channel__aux are renamed as follows RC_Channel_aux::set_radio_trim(Aux_servo_function_t function) to RC_Channel_aux::set_trim_to_radio_in_for(Aux_servo_function_t function) RC_Channel_aux::set_servo_out(Aux_servo_function_t function, int16_t value) to RC_Channel_aux::set_servo_out_for(Aux_servo_function_t function, int16_t value) Rationale: RC_Channel is a complicated class, which combines several functionalities dealing with stick inputs in pwm and logical units, logical and actual actuator outputs, unit conversion etc, etc The intent of this PR is to clarify existing use of the class. At the basic level it should now be possible to grep all places where private variable is set by searching for the set_xx function. (The wider purpose is to provide a more generic and logically simpler method of output mixing. This is a small step) |
||
---|---|---|
.. | ||
examples | ||
RC_Channel_aux.cpp | ||
RC_Channel_aux.h | ||
RC_Channel.cpp | ||
RC_Channel.h |