Peter Barker
aef8daa9ef
Tracker: correct altitude pressure offset calculation
...
the value nav_status.altitude_offset is expected to be a correction for differences between the barometers. The user calibrates this value with a MAV_CMD_PREFLIGHT_CALIBRATION call.
Without this patch we were passing in the raw barometric pressure values for the tracker and the tracked vehicle. It seems get_altitude_difference is expecting a sea-level pressure as its first argument now, as it subtracts the field elevation from the pressure-difference altitude calculations.
Change our call to provide a sea-level-adjusted value
2024-03-22 17:25:33 +11:00
Peter Barker
7235e6cb6a
Tracker: log the navigation alt offset
...
useful diagnostic, set just once
2024-03-22 17:25:33 +11:00
Peter Barker
dae819ba54
Tracker: correct compilation when HAL_LOGGING_ENABLED is false
2024-01-17 18:25:55 +11:00
Peter Barker
8461c11742
AntennaTracker: rename AP_AHRS::get_position to get_location
2022-01-25 10:47:22 +11:00
Siddharth Purohit
cd63dd1720
AntennaTracker: add support for controlling ONVIF camera using lua script
2021-07-07 18:57:25 +10: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
Peter Barker
531bdcc130
Tracker: create a Mode hierarchy to handle different control modes
2019-11-11 10:06:21 +11:00
Peter Hall
c128c80d56
Tracker: add disarmed pwm param
2019-07-19 21:12:36 +09:00
Pierre Kancir
dfdef294e3
AntennaTracker: move get_bearing_cd to Location and rename to get_bearing_to
2019-04-06 09:10:28 +11:00
IamPete1
59526efa02
Tracker: restore scan mode functionality
2019-03-26 17:16:02 +11:00
IamPete1
70d4d2ac8f
Tracker: honour vehicle arm status
...
Also don't indicate we are armed if we are in INITIALISING
2019-03-01 21:33:12 +11:00
IamPete1
5399b659ea
Tracker: handle Tracker fixed position
2019-03-01 20:57:54 +11:00
Dr.-Ing. Amilcar do Carmo Lucas
62fa59238b
Tracker: replace location_offset() and get_distance() function calls with Location object member function calls
...
This allows removing duplicated code
2019-02-28 11:44:09 +11: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
16c9023cf0
Tracker: update how current_loc gets location
...
Get position from EKF but fall back to GPS if that fails
2016-07-28 16:43:05 +09:00
stefanlynka
fd2eb8bb31
Tracker: Adding altitude difference calculation using relative altitude.
2016-07-06 16:55:13 +09:00
stefanlynka
ef60c202b4
Tracker: Added altitude offset based on alt_source
2016-06-15 18:17:01 +09:00
stefanlynka
6f88da07aa
Tracker: Adding alt_source enum
2016-06-15 18:16:59 +09:00
stefanlynka
ce3f3012c5
Tracker: Change vehicle info used to calculate offset
2016-06-15 18:16:57 +09:00
stefanlynka
f3461d182f
Tracker: Added vehicle position log
2016-06-09 23:10:19 +09:00
stefanlynka
d151b4481a
Tracker: changing baro log data
2016-06-09 23:09:40 +09:00
stefanlynka
0c06e62bce
Tracker: fixed calibration bug
2016-06-04 09:13:00 +09:00
Randy Mackay
68e4a83f44
Tracker: fix formatting and gps based alt difference
2016-05-25 09:51:30 +09:00
stefanlynka
1293b16589
Tracker: Allows choice of altitude source
2016-05-25 09:51:30 +09:00
stefanlynka
fd61a903f9
Tracker: Changing name of altitude_difference to alt_difference_baro
2016-05-25 09:51:30 +09:00
stefanlynka
e06c900812
Tracker: add Vbar dataflash message
2016-05-13 12:26:27 +09:00
dgrat
41661f815f
AP_Math: Replace the pythagorous* functions with a variadic template
...
The new function can deal with a variable number of function parameters.
Additionally, I renamed the functions to norm(), because this is the
standard name used in several other projects.
2016-05-10 11:41:26 -03:00
Andrew Tridgell
71b121837a
AntennaTracker: adjust for changed logging APIs
2016-05-07 18:27:18 +10:00
Randy Mackay
ecf01732d9
Tracker: add dataflash logging
2015-12-27 16:14:20 +09:00
Caio Marcelo de Oliveira Filho
dd3fb0a689
Tracker: use millis/micros/panic functions
2015-11-20 12:26:23 +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