Commit Graph

33 Commits

Author SHA1 Message Date
Supernovae e35cf757c2 AntennaTracker: NFC grammar fix-ups
made some rectification for better readablity
2021-10-27 22:05:50 +11:00
Iampete1 8b34f2f48c Tracker: use floats for get/set output scaled 2021-10-20 18:29:58 +11:00
Patrick José Pereira c98947fe85 AntennaTracker: Add missing const in member functions
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-02-03 18:45:14 +11:00
Leonard Hall d61aa7a4ce Tracker: support for upgrade to PID object 2019-07-25 17:38:15 +09:00
Peter Hall c128c80d56 Tracker: add disarmed pwm param 2019-07-19 21:12:36 +09:00
IamPete1 2d14d79a65 Tracker: clamp output angles to relevant ranges 2019-03-18 12:08:12 +11:00
Randy Mackay 02a2f32c40 Tracker: minor format fix 2018-09-06 08:13:39 +09:00
Randy Mackay 4a5c6fe1e5 Tracker: enable aux servos at init and at 1hz 2018-09-06 08:13:39 +09:00
Michael du Breuil 460455a687 Tracker: Don't force all outputs to trim 2018-08-23 13:19:08 +10:00
Andrew Tridgell 2513b27058 Tracker: use k_tracker_yaw and k_tracker_pitch
thanks to review by Buzz
2017-01-12 17:39:37 +11:00
Andrew Tridgell 3f71fd98a0 AntennaTracker: adapted to new SRV_Channel API 2017-01-12 17:39:37 +11:00
Randy Mackay 4ae9c0cf49 Tracker: minor formatting fix
No functional change
2016-12-14 11:06:30 +09:00
Mathieu OTHACEHE 152edf7189 Global: remove mode line from headers
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
2016-10-24 09:42:01 -02:00
stefanlynka 33abb619b9 Tracker: roll compensated slewing 2016-07-28 16:43:05 +09:00
stefanlynka a693f9ead6 Tracker: compensate for tilt while tracking
This adds an earth frame to body frame conversion which is required
to convert the earth-frame angles to the target vehicle into body-frame
movements of the servos
2016-07-28 16:43:05 +09:00
mirkix 6082472990 AntennaTracker: Delete (wrong) filename out of header 2016-07-25 17:52:50 -03:00
stefanlynka fd2eb8bb31 Tracker: Adding altitude difference calculation using relative altitude. 2016-07-06 16:55:13 +09:00
stefanlynka ca22f6612d Tracker: Changing pitch_range to pitch_min and pitch_max 2016-07-06 16:51:31 +09:00
stefanlynka 18e51da12d Tracker: Changed yaw slew margin 2016-07-06 16:40:22 +09:00
stefanlynka 2b7203e4d1 Tracker: Changed PID to AC_PID 2016-06-22 10:06:00 +09:00
stefanlynka d2ec395cdf Tracker: Making servo type customizable 2016-05-24 11:13:53 +09:00
Ricardo de Almeida Gonzaga 6b93f974d3 AntennaTracker: Fix typos 2016-05-13 19:20:07 -03:00
dgrat 76362caee0 AP_Math: Replace wrap_* functions with template versions 2016-05-10 11:41:26 -03:00
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
Jonathan Challinger cac49e4ce0 AntennaTracker: reflect renamed function in AP_AHRS 2015-12-18 18:08:37 +11:00
Luis Vale Gonçalves 6dd28f632c Tracker: revise text messages
Clean up text messages
2015-11-25 20:47:07 +09:00
Caio Marcelo de Oliveira Filho dd3fb0a689 Tracker: use millis/micros/panic functions 2015-11-20 12:26:23 +09:00
lvale e7efaa45c5 Tracker: text message severity uniformization
Continuing the uniformization, now for AntennaTracker
2015-11-05 12:33:59 +09:00
Lucas De Marchi 2c38e31c93 Remove use of PSTR
The PSTR is already define as a NOP for all supported platforms. It's
only needed for AVR so here we remove all the uses throughout the
codebase.

This was automated with a simple python script so it also converts
places which spans to multiple lines, removing the matching parentheses.

AVR-specific places were not changed.
2015-10-30 14:35:04 +09:00
Randy Mackay 26fdaa0710 Tracker: reverse CR servo error calculation 2015-06-03 23:23:52 +09:00
rcairman fba8ca3a98 AntennaTracker: continuous rotation servos
Global modifications for continuous rotation servos
2015-06-03 23:23:51 +09:00
Andrew Tridgell f8adea2ddd AntennaTracker: complete conversion to .cpp files 2015-06-01 15:08:08 +10:00
Andrew Tridgell 1660b027ca AntennaTracker: rename pde files to cpp 2015-06-01 15:06:32 +10:00