ardupilot/APMrover2
skyscraper 8c9e55edfa APMRover2: 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 Rover: major restructuring 2013-02-08 09:21:22 +11:00
APMrover2.cpp APMRover2: Fix up after refactoring RC_Channel class 2016-05-10 16:21:16 +10:00
GCS_Mavlink.cpp APMRover2: Fix up after refactoring RC_Channel class 2016-05-10 16:21:16 +10:00
Log.cpp APMRover2: Fix up after refactoring RC_Channel class 2016-05-10 16:21:16 +10:00
Makefile Rover Makefile: don't include targets.mk directly (included by apm.mk) 2013-01-09 13:15:53 -08:00
Makefile.waf waf: use single entry point for make wrappers 2015-12-10 10:40:34 +09:00
Parameters.cpp Rover: use DataFlash::log_while_disarmed() 2016-05-09 12:06:00 +10:00
Parameters.h APMrover2: replace header guard with pragma once 2016-03-16 18:40:44 +11:00
Parameters.pde Rover: added blank Parameters.pde for MissionPlanner 2015-05-30 15:21:29 +09:00
Rover.cpp APMrover2: use separate header for version macro 2016-05-06 13:11:28 -03:00
Rover.h APMrover2: use separate header for version macro 2016-05-06 13:11:28 -03:00
Steering.cpp APMRover2: Fix up after refactoring RC_Channel class 2016-05-10 16:21:16 +10:00
capabilities.cpp ArduRover: support MAVLINK_MSG_ID_MISSION_ITEM_INT 2016-05-01 07:13:46 +10:00
commands.cpp Rover: revise text messages 2015-11-25 20:50:00 +09:00
commands_logic.cpp Revert "APMRover2: clipped param cmd float to zero" 2016-04-23 23:51:33 -07:00
commands_process.cpp Rover: Implemented the HOME state update from Plane 2015-11-11 13:39:38 +11:00
compat.cpp Rover: use millis/micros/panic functions 2015-11-20 12:26:14 +09:00
compat.h APMrover2: replace header guard with pragma once 2016-03-16 18:40:44 +11:00
config.h APMrover2: use separate header for version macro 2016-05-06 13:11:28 -03:00
control_modes.cpp APMRover2: Fix up after refactoring RC_Channel class 2016-05-10 16:21:16 +10:00
createTags APMrover2: remove mention to .pde files 2016-05-07 22:55:48 -03:00
defines.h Rover: use DataFlash::log_while_disarmed() 2016-05-09 12:06:00 +10:00
events.cpp Rover: fixed build of .cpp files 2015-05-21 07:48:49 +10:00
failsafe.cpp Rover: use millis/micros/panic functions 2015-11-20 12:26:14 +09:00
make.inc Rover: wire up accel calibrator for Rover 2015-12-29 10:46:35 -08:00
navigation.cpp Rover: Implemented the HOME state update from Plane 2015-11-11 13:39:38 +11:00
radio.cpp APMRover2: Fix up after refactoring RC_Channel class 2016-05-10 16:21:16 +10:00
release-notes.txt Rover: Fixing the 3.0.0 release notes. 2016-05-02 10:58:38 +09:00
sensors.cpp Rover: wire up accel calibrator for Rover 2015-12-29 10:46:35 -08:00
setup.cpp Replace use of UARTDriver::printf_P() with UARTDriver::printf() 2015-10-30 14:35:25 +09:00
system.cpp Rover: use DataFlash::log_while_disarmed() 2016-05-09 12:06:00 +10:00
test.cpp APMRover2: Fix up after refactoring RC_Channel class 2016-05-10 16:21:16 +10:00
version.h Global: use ap_version.h 2016-05-06 13:11:28 -03:00
wscript waf: create program groups for main products 2016-03-26 15:43:08 -03:00