ardupilot/AntennaTracker
skyscraper 662cefd086 AntennaTracker: 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 Antenna: move up one directory 2014-08-14 20:56:00 +10:00
AntennaTracker.cpp AntennaTracker: adjust for changed logging APIs 2016-05-07 18:27:18 +10:00
AntennaTracker.txt Antenna: move up one directory 2014-08-14 20:56:00 +10:00
GCS_Mavlink.cpp GCS_MAVLink: Use a single stream_trigger() implementation 2016-05-07 23:49:35 -03:00
Log.cpp Tracker: fix attitude target logging 2016-02-10 11:49:45 +09:00
Makefile Antenna: update makefile for new location 2014-08-14 20:56:05 +10:00
Parameters.cpp AntennaTracker: Update path locations for parameters 2016-03-23 17:50:38 -03:00
Parameters.h AntennaTracker: replace header guard with pragma once 2016-03-16 18:40:44 +11:00
Parameters.pde AntennaTracker: added Parameters.pde for old MissionPlanner 2015-06-01 15:08:08 +10:00
ReleaseNotes.txt Tracker: 0.7.6 release notes 2016-02-10 11:52:17 +09:00
Tracker.h AntennaTracker: use separate header for version macro 2016-05-06 13:11:28 -03:00
capabilities.cpp Tracker: init vehicle capabilities 2015-08-01 09:47:35 +09:00
config.h AntennaTracker: use separate header for version macro 2016-05-06 13:11:28 -03:00
control_auto.cpp AntennaTracker: complete conversion to .cpp files 2015-06-01 15:08:08 +10:00
control_manual.cpp AntennaTracker: Fix up after refactoring RC_Channel class 2016-05-10 16:21:16 +10:00
control_scan.cpp AntennaTracker: complete conversion to .cpp files 2015-06-01 15:08:08 +10:00
control_servo_test.cpp AntennaTracker: Fix up after refactoring RC_Channel class 2016-05-10 16:21:16 +10:00
defines.h AntennaTracker: replace header guard with pragma once 2016-03-16 18:40:44 +11:00
make.inc Tracker: wire up accel cal for tracker 2015-12-29 10:46:35 -08:00
radio.cpp AntennaTracker: complete conversion to .cpp files 2015-06-01 15:08:08 +10:00
sensors.cpp AntennaTracker: adjust for changed logging APIs 2016-05-07 18:27:18 +10:00
servos.cpp AntennaTracker: Fix up after refactoring RC_Channel class 2016-05-10 16:21:16 +10:00
system.cpp AntennaTracker: Fix up after refactoring RC_Channel class 2016-05-10 16:21:16 +10:00
tracking.cpp AntennaTracker: adjust for changed logging APIs 2016-05-07 18:27:18 +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