ardupilot/libraries/AP_Motors
skyscraper daec4ea10e AP_Motors: Fix up after RC_Channels refactor
Further to refactor of RC_Channel class which included
adding get_xx set_xx methods, change reads and writes to the public members
to calls to  get and set functionsss

old public member(int16_t)   get function -> int16_t     set function (int16_t)
(expression where c is an object of type RC_Channel)
c.radio_in                     c.get_radio_in()           c.set_radio_in(v)
c.control_in                   c.get_control_in()         c.set_control_in(v)
c.servo_out                    c.get_servo_out()          c.set_servo_out(v)
c.pwm_out                      c.get_pwm_out()            // use existing
c.radio_out                    c.get_radio_out()          c.set_radio_out(v)
c.radio_max                    c.get_radio_max()          c.set_radio_max(v)
c.radio_min                    c.get_radio_min()          c.set_radio_min(v)
c.radio_trim                   c.get_radio_trim()         c.set_radio_trim(v);

c.min_max_configured() // return true if min and max are configured

Because data members of RC_Channels are now private and so cannot be written directly
 some overloads are provided in the Plane classes to provide the old functionality

new overload Plane::stick_mix_channel(RC_Channel *channel)
which forwards to the previously existing
void stick_mix_channel(RC_Channel *channel, int16_t &servo_out);

new overload Plane::channel_output_mixer(Rc_Channel* , RC_Channel*)const
which forwards to
(uint8_t mixing_type, int16_t & chan1, int16_t & chan2)const;

Rename functions

 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)
2016-05-10 16:21:15 +10:00
..
examples/AP_Motors_test AP_Motors: example sketch output limit flags 2016-04-01 11:59:30 +09:00
AP_Motors_Class.cpp AP_Motors: Fix up after RC_Channels refactor 2016-05-10 16:21:15 +10:00
AP_Motors_Class.h AP_Motors: remove unused set_stabilizing 2016-05-07 10:08:36 +09:00
AP_Motors.h AP_Motors: replace header guard with pragma once 2016-03-16 18:40:42 +11:00
AP_MotorsCoax.cpp AP_MotorsCoax: remove output_min 2016-04-01 11:59:30 +09:00
AP_MotorsCoax.h AP_MotorsCoax: remove output_min 2016-04-01 11:59:30 +09:00
AP_MotorsHeli_RSC.cpp AP_Motors: Fix up after RC_Channels refactor 2016-05-10 16:21:15 +10:00
AP_MotorsHeli_RSC.h AP_MotorsHeli_RSC: rotor speeds in 0 to 1 range 2016-04-01 11:59:30 +09:00
AP_MotorsHeli_Single.cpp AP_MotorsHeli: swash and tail servo objects moved into class 2016-04-01 11:59:30 +09:00
AP_MotorsHeli_Single.h AP_MotorsHeli: swash and tail servo objects moved into class 2016-04-01 11:59:30 +09:00
AP_MotorsHeli.cpp AP_Motors: Fix up after RC_Channels refactor 2016-05-10 16:21:15 +10:00
AP_MotorsHeli.h AP_MotorsHeli: calculate_scalars made protected 2016-04-01 11:59:30 +09:00
AP_MotorsHexa.cpp AP_MotorsHexa: call noramlise_rpy_factors in motor setup 2016-04-01 11:59:30 +09:00
AP_MotorsHexa.h AP_Motors: replace header guard with pragma once 2016-03-16 18:40:42 +11:00
AP_MotorsMatrix.cpp AP_MotorsMatrix: make const a float 2016-04-23 23:06:25 -07:00
AP_MotorsMatrix.h AP_MotorsMatrix: remove output_min 2016-04-01 11:59:30 +09:00
AP_MotorsMulticopter.cpp AP_Motors: rename MOT_PWM_MODE to MOT_PWM_TYPE 2016-04-14 08:05:07 +10:00
AP_MotorsMulticopter.h AP_MotorsMulticopter: formatting fixes 2016-04-01 11:59:30 +09:00
AP_MotorsOcta.cpp AP_MotorsOcta: call noramlise_rpy_factors in motor setup 2016-04-01 11:59:30 +09:00
AP_MotorsOcta.h AP_Motors: replace header guard with pragma once 2016-03-16 18:40:42 +11:00
AP_MotorsOctaQuad.cpp AP_MotorsOctaQuad: call normalise_rpy_factors in motor setup 2016-04-01 11:59:30 +09:00
AP_MotorsOctaQuad.h AP_Motors: replace header guard with pragma once 2016-03-16 18:40:42 +11:00
AP_MotorsQuad.cpp AP_MotorsQuad: call normalise_rpy_factors in motor setup 2016-04-01 11:59:30 +09:00
AP_MotorsQuad.h AP_Motors: replace header guard with pragma once 2016-03-16 18:40:42 +11:00
AP_MotorsSingle.cpp AP_Motors: allow tricopter motor 7 to be moved to any output 2016-04-22 08:32:03 +10:00
AP_MotorsSingle.h AP_MotorsSingle: remove output_min 2016-04-01 11:59:30 +09:00
AP_MotorsTri.cpp AP_Motors: allow arbitrary motor mapping with tricopters 2016-04-28 22:36:41 +10:00
AP_MotorsTri.h AP_MotorsTri: protect against div-by-zero if MOT_YAW_SV_ANGLE param was set to 90 2016-04-01 11:59:30 +09:00
AP_MotorsY6.cpp AP_MotorsY6: call normalise_rpy_factors in motor setup 2016-04-01 11:59:30 +09:00
AP_MotorsY6.h AP_Motors: replace header guard with pragma once 2016-03-16 18:40:42 +11:00