ardupilot/ArduPlane
skyscraper 7f29903287 ArduPlane: Fix up after refactoring RC_Channel class
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:16 +10:00
..
APM_Config.h Plane: added HIL_MODE parameter 2015-03-13 22:52:56 +11:00
APM_Config.h.reference Plane: cleanup HIL defines 2014-02-15 05:29:46 +11:00
ArduPlane.cpp ArduPlane: Fix up after refactoring RC_Channel class 2016-05-10 16:21:16 +10:00
Attitude.cpp ArduPlane: Fix up after refactoring RC_Channel class 2016-05-10 16:21:16 +10:00
GCS_Mavlink.cpp ArduPlane: Fix up after refactoring RC_Channel class 2016-05-10 16:21:16 +10:00
Log.cpp ArduPlane: Fix up after refactoring RC_Channel class 2016-05-10 16:21:16 +10:00
Makefile Plane: cleanup cruft in Makefile 2013-10-13 21:41:01 +11:00
Makefile.waf waf: use single entry point for make wrappers 2015-12-10 10:40:34 +09:00
Parameters.cpp Plane: use DataFlash::log_while_disarmed() 2016-05-09 12:05:25 +10:00
Parameters.h Plane: smooth-out the end of takeoff pitch by reducing takeoff pitch min via TKOFF_PLIM_SEC 2016-04-21 22:54:17 -07:00
Parameters.pde Plane: added blank Parameters.pde for MissionPlanner 2015-05-30 15:21:33 +09:00
Plane.cpp ArduPlane: use separate header for version macro 2016-05-06 13:11:28 -03:00
Plane.h ArduPlane: Fix up after refactoring RC_Channel class 2016-05-10 16:21:16 +10:00
adsb.cpp Plane: refactored interface 2015-12-31 15:36:49 +11:00
altitude.cpp Plane: Added a method that returns current altitude relative to terrain, if available, or home otherwise. 2016-05-05 09:02:20 -07:00
arming_checks.cpp ArduPlane: Fix up after refactoring RC_Channel class 2016-05-10 16:21:16 +10:00
capabilities.cpp ArduPlane: support MAVLINK_MSG_ID_MISSION_ITEM_INT 2016-05-01 07:13:46 +10:00
commands.cpp Plane: Add support for DO_REPOSITION via COMMAND_INT 2016-04-17 19:00:03 -07:00
commands_logic.cpp Plane: initial implementation of QRTL for quadplane RTL 2016-04-30 14:34:47 +10:00
config.h ArduPlane: use separate header for version macro 2016-05-06 13:11:28 -03:00
control_modes.cpp Plane: added OVERRIDE_SAFETY parameter 2016-01-29 12:20:14 +11:00
createTags ArduPlane: remove mention to .pde files 2016-05-07 22:55:48 -03:00
defines.h Plane: use DataFlash::log_while_disarmed() 2016-05-09 12:05:25 +10:00
events.cpp Plane: initial implementation of QRTL for quadplane RTL 2016-04-30 14:34:47 +10:00
failsafe.cpp ArduPlane: Fix up after refactoring RC_Channel class 2016-05-10 16:21:16 +10:00
geofence.cpp ArduPlane: avoid comparison between signed and unsigned 2015-12-01 16:28:18 -02:00
is_flying.cpp Plane: fixed is_flying() for VTOL flight 2016-04-23 21:03:46 +10:00
landing.cpp Plane: update flight stage on successful restart_landing_sequence() 2016-04-21 22:54:23 -07:00
make.inc Plane: convert tuning to use AP_Tuning library 2016-05-07 18:34:15 +10:00
motor_test.cpp ArduPlane: Fix up after refactoring RC_Channel class 2016-05-10 16:21:16 +10:00
navigation.cpp ArduPlane: Fix up after refactoring RC_Channel class 2016-05-10 16:21:16 +10:00
parachute.cpp Plane: Parachute uses altitude above ground (not home) to check suitability for deployment. 2016-05-05 09:02:25 -07:00
px4_mixer.cpp ArduPlane: Fix up after refactoring RC_Channel class 2016-05-10 16:21:16 +10:00
quadplane.cpp ArduPlane: Fix up after refactoring RC_Channel class 2016-05-10 16:21:16 +10:00
quadplane.h Plane: convert tuning to use AP_Tuning library 2016-05-07 18:34:15 +10:00
radio.cpp ArduPlane: Fix up after refactoring RC_Channel class 2016-05-10 16:21:16 +10:00
release-notes.txt Plane: update release notes for 3.6.0beta1 2016-04-30 14:34:47 +10:00
sensors.cpp Plane: write voltage/current much more frequently 2016-02-29 21:24:54 +11:00
setup.cpp Replace use of UARTDriver::printf_P() with UARTDriver::printf() 2015-10-30 14:35:25 +09:00
system.cpp ArduPlane: Fix up after refactoring RC_Channel class 2016-05-10 16:21:16 +10:00
takeoff.cpp Plane: prevent a division by zero in takeoff code 2016-04-26 12:06:57 +10:00
test.cpp ArduPlane: Fix up after refactoring RC_Channel class 2016-05-10 16:21:16 +10:00
tuning.cpp Plane: added some more tuning sets 2016-05-08 18:45:42 +10:00
tuning.h Plane: added some more tuning sets 2016-05-08 18:45:42 +10:00
version.h Global: use ap_version.h 2016-05-06 13:11:28 -03:00
wscript Plane: removed unnecessary libs 2016-05-10 14:13:39 +10:00