Commit Graph

71 Commits

Author SHA1 Message Date
Michael du Breuil 32b88feb60 Tracker: Make capability init consistent 2018-11-05 14:04:36 +11:00
Peter Barker dc52ca2192 Tracker: leave AHRS to log and notify home changes 2018-10-16 10:55:13 +11:00
Randy Mackay 02a2f32c40 Tracker: minor format fix 2018-09-06 08:13:39 +09:00
Michael du Breuil 465c2c475e Tracker: Update notify initilization 2018-08-01 09:22:09 +10:00
Michael du Breuil 4d753ab8e0 Tracker: Remove unneeded battery failsafe flag clearing 2018-06-27 11:39:35 +10:00
Peter Barker b63b00f84e Tracker: remove usb-mux checking 2018-06-20 02:12:56 +01:00
Peter Barker 1a1ae54e07 Tracker: use AP_FWVersion singleton 2018-06-18 19:10:37 +01:00
Peter Barker 7be25fccea Tracker: split home-set and home-locked state 2018-05-29 14:38:45 +10:00
Peter Barker cbbd28aeda Tracker: let GCS_MAVLink handle get_home_position 2018-05-17 20:42:36 +10:00
Peter Barker 62a3faf448 Tracker: remove arguments to send_home and send_ekf_origin 2018-05-17 20:42:36 +10:00
Peter Barker 3e0dcacf58 Tracker: handle setting of ekf origin in GCS_MAVLink 2018-05-17 10:13:42 +10:00
Andrew Tridgell cd8b001f63 Tracker: fixed build warning 2018-05-07 11:43:23 +10:00
Peter Barker 753b710477 Tracker: Baro does its own dataflash logging 2018-04-12 19:12:12 +01:00
Peter Barker b862e4f3a8 Tracker: tidy handling of barometer calibrations 2018-04-02 23:25:05 +01:00
Peter Barker f844f4ea80 Tracker: add reason to set_mode 2018-02-22 10:30:10 +10:00
Peter Barker f86d4466bd Tracker: remove shims used in scheduler table 2018-02-12 20:09:09 +09:00
Lucas De Marchi efdc7daf96 AntennaTracker: do not include version.h/ap_version.h
The interface provided by each vehicle should be used to get the
version. The user of the macro has been converted to use that interface.
2017-09-23 21:37:45 -07:00
Randy Mackay d45eb33980 Tracker: support SET_GPS_GLOBAL_ORIGIN message 2017-09-19 10:30:15 +09:00
Peter Barker 947bae2f86 Tracker: use GCS_MAVLINK subclasses to handle set_mode 2017-08-16 11:58:10 +10:00
Peter Barker 579a1da2c5 Tracker: eliminate global static GCS_MAVLINK::send_home_all 2017-07-11 23:48:39 +01:00
Peter Barker 2039222c7e Tracker: use send_text method on the GCS singleton 2017-07-09 17:17:29 -04:00
Peter Barker b81e5a8562 Tracker: create GCS subclass, use inheritted methods 2017-07-07 16:18:37 +01:00
Eugene Shamaev b365a4ddf5 AntennaTracker: move of CAN parameters into separate group 2017-07-03 11:44:32 +01:00
Peter Barker b62a1394dd Tracker: indicate to gps library which bit indicates log-gps 2017-06-29 15:43:39 +01:00
Peter Barker ef72381708 Tracker: check dataflash to see if we should log backend gps messages 2017-06-29 15:43:38 +01:00
Peter Barker 075c40bd60 Tracker: move should_log check of log bitmask into DataFlash 2017-06-29 15:26:27 +01:00
Peter Barker 762d5a649d Tracker: tell dataflash we're arming or disarming 2017-06-16 17:07:48 +01:00
Peter Barker 31ac03368d Tracker: stop using in_mavlink_delay as a proxy for disabling logging 2017-06-16 17:07:48 +01:00
Peter Barker bf510221e0 Tracker: call dataflash should_log method 2017-06-16 17:07:48 +01:00
Peter Barker 332e5059e2 Tracker: simplify should_log (NFC) 2017-06-11 20:34:12 +01:00
Peter Barker f130b4a580 Tracker: move init of DataFlash references into vehicle init
This makes it look like the other vehicle types
2017-05-01 15:04:34 +01:00
Andrew Tridgell f151fd3691 AntennaTracker: call BoardConfig.init_safety() at end of startup
this fixes a bug where motors can start on soft reboot
2017-04-30 21:47:04 +10:00
Peter Barker e12e51f502 Tracker: Support for a GCS singleton 2017-02-13 09:32:01 +11:00
Peter Barker 14470573f6 Tracker: rename gcs[] to gcs_chan[]
Wish to use gcs() to return the gcs singleton
2017-02-13 09:32:01 +11:00
murata 577d19f91d Tracker: Unify from print or println to printf. 2017-01-27 18:20:22 +11:00
Randy Mackay a04cdce1bc Tracker: notify initialised after parameters loaded 2017-01-23 15:07:21 -08: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
murata cc8dd92a8c Tracker: To nullptr from NULL. 2016-10-28 09:56:07 -07: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
Andrew Tridgell 30da64f8ef Tracker: fixed startup order of setting mavlink system ID 2016-10-17 09:21:08 +11:00
Andrew Tridgell 80bad445b8 Tracker: changed startup order
this allows BoardConfig to report errors in a way that allows for
BRD_TYPE to be changed by the user
2016-08-10 19:54:01 +10:00
Randy Mackay a079c7bf4c Tracker: bug fix re ignoring invalid START_LAT message 2016-07-06 12:01:04 +09:00
stefanlynka 0c06e62bce Tracker: fixed calibration bug 2016-06-04 09:13:00 +09:00
Andrew Tridgell 8c3bbdaf73 AntennaTracker: don't stall EKF during baro cal 2016-05-24 17:00:55 +10:00
Andrew Tridgell d3c19de9df AntennaTracker: simplify UART setup 2016-05-21 15:25:16 +10: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
Lucas De Marchi 49a46e463f AntennaTracker: use separate header for version macro
Having the version macro in the config.h and consequently in the main
vehicle header means that whenever the version changes we need to
compiler the whole vehicle again. This would not be so bad if we weren't
also appending the git hash in the version. In this case, whenever we
commit to the repository we would need to recompile everything.

Move to a separate header that is include only by its users. Then
instead of compiling everything we will compile just a few files.
2016-05-06 13:11:28 -03:00
Tom Pittenger db9bed573f Tracker: use set_dataflash() for static logging 2016-02-24 09:18:05 +11:00