GPS GPS_home refactor (#12870)
commitdeef912d478e89c1c796258b6924363c7a3c9035
authorPetr Ledvina <ledvinap@gmail.com>
Wed, 28 Aug 2024 07:20:01 +0000 (28 09:20 +0200)
committerGitHub <noreply@github.com>
Wed, 28 Aug 2024 07:20:01 +0000 (28 09:20 +0200)
tree0c583fdcf74fa77a80be46594cefbc123d6c0e47
parent9205c4594fc25f8e0fa223ff76746bd1290a93ce
GPS GPS_home refactor (#12870)

* GPS GPS_home refactor

- use `gpsLocation_t` for GPS_home, rename it to GPS_home_llh
- cleanup `GPS_distance_cm_bearing`
- add optiopnal 3D distance calculation in `GPS_distance_cm_bearing`
- rename some bogus defines

* GPS - finish upstream merge

- add const
- adapt src/main/fc/gps_lap_timer

* GPS - use gpsLocation_t in blackbox logging

Height member is ignored now

* GPS - remove unused declarations

---------

Co-authored-by: Petr Ledvina <ledvinap@hp124.ekotip.cz>
src/main/blackbox/blackbox.c
src/main/fc/gps_lap_timer.c
src/main/io/gps.c
src/main/io/gps.h
src/main/telemetry/ltm.c
src/main/telemetry/mavlink.c
src/test/unit/blackbox_unittest.cc