1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 17:25:20 +03:00
Commit graph

164 commits

Author SHA1 Message Date
Tony Cabello
6a6193551c Numeric Vario calculated with GPS altitude 2018-12-05 09:01:53 +01:00
Tony Cabello
d87e40725e Calculate distance flown with a speed threshold 2018-12-02 06:49:46 +01:00
Tony Cabello
3199c48ee9 GPS Rescue no longer forces a reset home position when disarmed
Home position is deinitialized on disarm at gpsUpdate, so it can't be missed
DistanceFlown is reset inside GPS_calculateDistanceFlown
DistanceFlown was not calculated properly
2018-11-26 00:32:22 +01:00
Michael Keller
e24a4fe4de
Merge pull request #7113 from TonyBlit/gps_total_distance_hdop
Total Distance calculation fixes & cleanup
2018-11-24 12:17:42 +13:00
Tony Cabello
16dfbe3fc2 Total Distance calculation fixes:
- Only updated when armed
- Less frequently updated when low GPS accuracy, to mitigate adding up error

Unused actual_speed cleanup
2018-11-22 14:23:56 +01:00
Tony Cabello
888c0e48f6 GPS Rescue: Add GPS LOST to Sanity Checks 2018-11-16 15:01:24 +01:00
Tony Cabello
7abe51303f Total distance flown added to OSD and Stats 2018-11-08 15:40:30 +01:00
Alex Wolf
7115ab4047 GPS over MSP related fixes 2018-08-31 22:31:56 -04:00
Michael Keller
83fa3f31c6
Merge pull request #6531 from awolf78/GPS_FROM_MSP
GPS support via MSP
2018-08-24 08:38:17 +12:00
mikeller
6de1c32d9d Added shadow copies for CLI and MSP. 2018-08-21 00:36:47 +12:00
mikeller
c99629bbf1 Removed calls to (latching) 'feature()'. 2018-08-21 00:35:55 +12:00
AirBreak69
0e52e21524 GPS altitude: cleanup all occurancies to assume source is in cm per lsb resolution
Harmonized (and partly corrected) all occurancies of gpsSol.llh.alt and getEstimatedAltitude() to handle altiude sourced in cm resolution.
This was introduced by GSP_RESCUE/RTH.
Introduced a naming convention that include the unit into the variable/function names:
gpsSol.llh.alt -> gpsSol.llh.alt_cm
getEstimatedAltitude() -> getEstimatedAltitude_cm()
2018-08-19 00:11:30 +12:00
Andrey Mironov
efd7586841 Added GNSS receiver fix messages 2018-08-10 13:52:50 +03:00
Alex Wolf
92d3b7ca6f GPS support via MSP 2018-08-08 09:49:36 -04:00
mikeller
93ab648183 Added disabling of GPS_RESCUE when 3D is enabled. 2018-07-01 21:33:32 +12:00
Michael Keller
c6a5ab9b96
Merge pull request #6096 from AirBreak69/GPS_handle_negative_altitude_and_safer_maths_macros
GPS: handle negative and high altitudes; safer macros in maths.h
2018-06-20 01:01:02 +12:00
AirBreak69
8709ba441d
Tidy 2018-06-16 11:05:20 +02:00
AirBreak69
66c6b8397e
Pseudo change to trigger test build 2018-06-15 19:31:06 +02:00
AirBreak69
482d38ade1
Tidy grab_fields() 2018-06-14 21:02:04 +02:00
Curtis Bangert
8950eb1f68 Moved updateGPSRescueState to imuUpdateAttitude. gps_rescue.c tidy. 2018-06-14 02:21:12 -04:00
AirBreak69
719d50e8fb
Harmonized altitude from NMEA with ublox data to centimeters (0.01m per lsb)
Before GPS_RESCUE it was decimeter (0.1m per lsb) from ublox but meter (1m per lsb) from NMEA, stored as unit16.
Now both protocols should deliver centimeters (0.01m per lsb), stored as int32 in order to cover negative and high altitudes too.
2018-06-14 00:18:42 +02:00
AirBreak69
c1342c7197
Cleaner code for negative sign detection in grab_fields()
Following suggestions.
2018-06-14 00:08:15 +02:00
AirBreak69
45bf0ac4ec
Handle negative values in grab_fields() 2018-06-13 02:09:54 +02:00
AirBreak69
536ad399e6 GPS: handle negative and high altitudes; safer macros in maths.h
Fixes underflows at negative altitude (below MSL) and overflows at altitude higher than 655.35m
Corrected parenthesis in maths.h avoid incorrect equations if arguments contain expressions.
2018-06-12 00:02:29 +02:00
Miguel Angel Mulero Martinez
f43b36ce19 Add Galileo support to GPS 2018-05-31 08:20:58 +02:00
mikeller
d535fd6180 Renamed 'gpsRescue' to 'gpsRescueConfig' and moved it into the appropriate location. 2018-05-26 15:28:08 +12:00
Diego Basch
c3412225f5 Fix GPS Rescue (needs yaw smoothing but works). 2018-05-22 15:42:14 -07:00
s0up
ac6b8088c9 add gps rescue mode 2018-05-20 16:28:17 -07:00
mikeller
6a605be73b Enabled bidirectional communication with NMEA GPS for all targets. 2018-05-13 01:56:36 +12:00
s0up
de5fa47c4c navigation feature / reference removal 2018-05-09 10:28:36 -07:00
Diego Basch
c46be03047 added gps for altitude estimation, remove most unused code, rename altitude.c to position.c, add hdop to nmea 2018-05-04 08:45:26 -07:00
blckmn
a9f74cd6df Removed excess trailing spaces before new lines on licenses. 2018-04-25 20:58:00 +10:00
blckmn
46fe22b4bd Direct license replacement 2018-04-22 09:22:46 +10:00
zuim
605962d9a5 Get current time using gps (#5520)
* Get time using gps with nmea and ublox protocol. The rtctime is set once gps time is available.

* Fix issues with Gps time

* Fix problems with gpstime
2018-03-27 01:04:41 +13:00
mikeller
b489d0ba9d Renamed 'parameter_group' to 'pg'. 2017-12-19 23:36:31 +13:00
mikeller
4d30971e2d Fixed permissions on files. 2017-11-28 23:31:55 +13:00
jflyper
04f00ea513 Convert baudrate index into value when calling openSerialPort 2017-11-27 00:42:20 +09:00
Martin Budden
8cb7abd15f Added data parameter to UART RX callback 2017-11-25 10:11:37 +00:00
Martin Budden
cfc87d1891 Better separation between GPS and NAV 2017-11-18 08:00:31 +00:00
mikeller
a8d34dabb0 Changed defines for GYRO/ACC/MAG/BARO/GPS/SONAR/OSD/BLACKBOX/CMS to conform to the USE_ convention. 2017-11-05 10:15:24 +13:00
Martin Budden
944fe0761c Tidied UART enum definitions 2017-07-29 13:30:37 +01:00
Martin Budden
3d4f0bb137 Whitespace tidy 2017-07-05 06:36:22 +01:00
Martin Budden
564e0c94b8 Move some GPS variables into struct. Some alignment with iNav 2017-06-25 14:44:04 +01:00
Michael Keller
d84aeea538 Merge pull request #3110 from Phanny-P/Phanny-P-patch-1
Changed gps_auto_config to set mode to "airborne <2g"
2017-06-14 15:50:43 +12:00
Phanny-P
7ff4605c36 Create gps.c 2017-06-13 22:07:40 -04:00
Phanny-P
c53d2d08bb Create gps.c 2017-06-13 22:06:49 -04:00
Martin Budden
23f158913e Moved time functions out of system.h into time.h 2017-05-26 14:03:28 +01:00
Phanny-P
83a54d3df5 Update gps.c
Updated default gps_auto_config dynamic model to airborn4g. ALSO Added airborne1g (which is commented out) so testing can be carried out on both modes.
2017-05-22 07:06:04 -04:00
Michael Keller
a3a65e1c67 Reduce firmware footprint of uBlox code. 2017-05-19 20:03:57 +12:00
Phanny-P
0cf8901e0e Changed gps.c to have gps_auto_config set mode to "airborne <2g" instead of "pedestrian"
I am new to this... terminology is foreign, please bear with me :/
Using a ublox M8N gps receiver on my BFF3, velocity readings were very laggy and inaccurate; readings were unusable. After researching, I compiled a hex where the gps_auto_config sets the "dynamic platform model" to the airborne <2g mode. Once done, I compared osd velocity readings to my car with excellent results and response time. I have flown about a dozen times since and the difference is astounding (sample video: https://youtu.be/CLArfxTj15M).
From the ublox documentation:
"7.1 Platform settings
u-blox receivers support different dynamic platform models (see table below) to adjust the navigation engine to
the expected application environment. These platform settings can be changed dynamically without performing
a power cycle or reset. The settings improve the receiver's interpretation of the measurements and thus provide
a more accurate position output. Setting the receiver to an unsuitable platform model for the given application
environment is likely to result in a loss of receiver performance and position accuracy."
link: https://www.u-blox.com/sites/default/files/products/documents/u-blox8-M8_ReceiverDescrProtSpec_%28UBX-13003221%29_Public.pdf
2017-05-17 23:36:15 -04:00