1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00
Commit graph

38 commits

Author SHA1 Message Date
blckmn
1867fff9b7 AltitudeDerivative unused if no baro or gps defined. 2022-10-28 17:50:42 +11:00
KarateBrot
ddf1d46549 Remove old style definitions 2022-10-13 03:33:54 +02:00
ctzsnooze
cbd374590a fixes for maxAlt, gpsTrust, sanity checks
fixes indefinite climb in max_alt mode
fixes altitude control issues when baro_hardware was disabled
fixes an error causing GPS trust to not calculate the baro factor correctly
attenuates rescue velocity_i correctly when descending
fixes velocity Iterm attenuation when close to home
logs the final GPS trust value
allow a little pitch and roll when landing
improves disarm by detecting ground effect
use floats for smoothness
refactor and simplify yaw
re-name idleTasks to setReturnAltitude
descend in level mode when sanity checks abort, rather than disarming immediately
PT3 filtering on upsampled pitch angle instead of pitch angle rate of change limiter
remove velocity attenuation when not pointing to home
allow some roll and pitch in landing phase to counter drift
include sanity check on altitude gain in climb phase
include check for 3D fix in min sats sanity check
acquire pitch and roll more smoothly when they commence
simple smoothing of baro while disarmed for better zero
re-name fields
2022-09-27 13:28:36 +10:00
ctzsnooze
1cd28a5eea refactoring and smoother transition to return, thanks Karatebrot 2022-09-15 15:06:40 +10:00
ctzsnooze
0766d93f72 remove abrupt switch to GPS with negative Baro signal 2022-09-15 11:31:37 +10:00
ctzsnooze
a930481dc3 attempt to fix no altitude in GPS only mode 2022-09-15 11:31:37 +10:00
ctzsnooze
3498d7e8bf fix Max_Alt problem by zeroing the GPS altitude to filter while disarmed 2022-09-15 11:31:37 +10:00
ctzsnooze
47460f55e1 Improve landing, update OSD, BB names, smooth Pitch, sanity bugfix
Bugfix potential sanity check failure on negative ascent or slow descent
Bugfix sanity failure on low climb authority builds
Update GPS Rescue OSD, CLI, Blackbox names and sequence
Allow zero climb altitude and return speed
Change some GPS Rescue altitude names
max rescue yaw rate = 180 deg/s
check yaw error angle faster update rate
Yaw faster
Initate yaw smoothly.
Increase throttle D during faster descents
climb without rotating
smoother transition to fly home
fix maxAlt bug by using float
update heading debug to include groundSpeed etc
altitude lowpass default 3Hz not 4Hz
increase disarm threshold from 1.0g to 1.5g
PT3 on pitch at 4Hz.
2022-09-15 11:31:36 +10:00
ctzsnooze
b88e73d137 120hz altitude data used in GPS Rescue
Disarm on crash flip recovery or impact while in do nothing mode
add blackbox headers for new fields
rearrange altitude factors
fix ibus uint16 for estimatedVario
update GPS altitude at 120hz
get GPS derivative from error
PT2 filter on GPS derivative
remove acceleration element
move altitude filtering to position.c
calculate altitude derivative in position.c for vario
filter vario with PT1
update pg in position and baro
field and test tuning from field tests
land 3x faster from higher altitude
PT2 vario for checking GPS
2022-09-15 11:31:36 +10:00
ctzsnooze
09ee27cd97 Refactor sat count checks and GPS trust code
single minimum GPS satellite setting
single required GPS satellite setting
CLI Baro vs GPS trust user interface
GPS trust refactoring
allow arming with GPS_FIX even if not enough sats
required sats must be present to arm
set required sat count to 8
add blackbox headers
2022-09-07 09:55:35 +10:00
ctzsnooze
b2241b32c3 Refactor Baro to floats, filter at position rate
convert pressure to altitude early
remove median filter
PT2 filtering upsampled to altitude function in position.c - thanks KarateBrot
baro task synced to position task - thanks Steve
PT2 implementation - thanks KarateBrot
ground altitude from filtered altitude
baro cali by average of calibration samples over cal period
adjust vario and smoothing defaults
don't say haveBaroAlt until cal is complete
reduce PIDs since Baro is faster
add baro smoothing values to blackbox header

Co-Authored-By: Jan Post <post@stud.tu-darmstadt.de>
Co-Authored-By: Steve Evans <SteveCEvans@users.noreply.github.com>
2022-09-02 14:38:40 +10:00
Filipp Bakanov
da2185225a
Fixed review 2022-01-29 19:48:20 +03:00
Filipp Bakanov
9a0e0b8a8d
Fixed review 2022-01-29 12:58:57 +03:00
Filipp Bakanov
674d3b1e3b
Fixed review 2022-01-29 11:48:10 +03:00
Filipp Bakanov
e19469c0ba
Fixed review 2022-01-28 21:01:11 +03:00
Filipp Bakanov
bbc46d9cad
Fixed missing baro GPS altitude estimation 2022-01-28 16:09:33 +03:00
Filipp Bakanov
4bda34b66b
Returned back to config 2022-01-28 16:06:30 +03:00
Filipp Bakanov
ca0f25b265
Refactor 2022-01-28 15:14:29 +03:00
Filipp Bakanov
dc409c29fe
Fixed wrong altitude in DEFAULT (GPS + BARO) mode 2022-01-17 17:31:06 +03:00
Steve Evans
29d221502e Use peak tracking as default for task duration estimation rather than a moving average 2021-12-17 22:09:52 +00:00
Steve Evans
ab1baccc66 Track state execution time for OSD, baro, rx and GPS tasks and inform scheduler of next state execution time 2021-12-17 15:40:01 +00:00
mikeller
1812eee8fd Cleaned up 'getEstimatedVario()'. 2020-05-31 14:14:58 +12:00
Tony Cabello
5209a83e6a Bug fix: absolute altitude before arming is now correct when using GPS and Baro 2020-03-21 16:26:30 +01:00
jflyper
ff16686893 White space tidy 2020-02-17 23:54:57 +13:00
mikeller
cedcf2d7e2 Added calibration menu to CMS. 2019-11-19 13:59:52 +13:00
Michael Keller
ad2b350920
Fixed USE_VARIO conditional. (#8133)
Fixed USE_VARIO conditional.
2019-05-04 15:34:44 +12:00
mikeller
33a956d123 Fixed USE_VARIO conditional.Also fixed some indentation. 2019-05-01 00:41:04 +12:00
Maciej Bunia
bd5b73d6b0 add missing haveGpsAlt and haveBaroAlt checks
simplify conditions
2019-04-30 13:07:45 +02:00
Maciej Bunia
fe4c3ac149 add POSITION_ALT_SOURCE lookup table to enum
add cli setting to choose alt source
modify alt calculation
2019-04-29 20:41:28 +02:00
mikeller
fad7ee3464 Fix missing 'platform.h' includes in compilation units, and make them stay away. 2019-02-23 17:49:25 +13:00
Tony Cabello
6a6193551c Numeric Vario calculated with GPS altitude 2018-12-05 09:01:53 +01:00
Blaine
2e552841f1 Enables Vario on targets that support barometers
OSD and telemetry output of vario data is enabled on F4 and up targets
that have
USE_BARO defined.  Settings and telem elements are removed from all
other targets.

F3 targets are not supported to free memory.
2018-09-02 23:20:07 -07: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
s0up
ce1a3edc03 put altitude offset getter within same ifdef as calculate estimated altitude 2018-06-19 09:06:29 -07:00
s0up
911c8e406c wait for altitude offset to be applied before updating idleTask data 2018-06-18 14:43:35 -07:00
mikeller
eb8098e933 Fix BARO altitude display. 2018-05-06 20:01:41 +12:00
blckmn
22b84f12a8 Licences missed during PRs 2018-05-05 17:03:30 +10: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