Daniel Agar
4084beaa53
ekf2: wrap_pi fixes and fuseYaw() renaming
...
- to stay consistent with https://github.com/PX4/PX4-Autopilot/pull/19434
2022-04-06 10:50:20 -04:00
Daniel Agar
b8315ea72a
WIP: ekf2 add new initial heading parameter (EKF2_HDG_INIT)
...
- used only when all yaw aid sources are disabled
2022-04-04 13:14:31 -04:00
Daniel Agar
becffa3441
ekf2: cleanup zero innovation heading fusion
2022-04-04 10:42:57 -04:00
Daniel Agar
1a5ff0bae4
ekf2: save full covariance sub-matrix for mag I/B
2022-04-04 10:42:57 -04:00
Daniel Agar
0df8443f2f
ekf2: simplify mag auto (3d select)
2022-04-04 10:42:57 -04:00
Daniel Agar
ad1a35f7a4
ekf2: mag fusion don't update all states if mag_fault or mag_field_disturbed
2022-04-04 10:42:57 -04:00
Daniel Agar
0546f4082b
ekf2: replace mag reset request flags with timeout checks
2022-04-04 10:42:56 -04:00
Daniel Agar
ca893e55a5
ekf2: allow yaw estimator to run on ground (not at rest) and init yaw align
...
- add a common resetMagStates() that uses the WMM to reinit mag states (I & B) if possible
2022-04-04 10:42:56 -04:00
Daniel Agar
2f0c2fa126
ekf2: replace _inhibit_ev_yaw_use with local flag
2022-04-04 10:42:56 -04:00
Daniel Agar
cdf9e6d35a
ekf2: merge runOnGroundYawReset() and runInAirYawReset()
2022-04-04 10:42:55 -04:00
Daniel Agar
6e363b0e76
ekf2: EKFGSF_yaw delete unnecessary internal state
2022-04-04 10:42:55 -04:00
Daniel Agar
db138d4480
ekf2: yaw estimator add yaw_composite_valid boolean
2022-04-04 10:42:55 -04:00
Daniel Agar
f8a33e551c
ekf2: allow yaw estimator to run when disarmed (if not at rest)
2022-04-04 10:42:55 -04:00
Daniel Agar
741310bc36
ekf2: reset mag_lpf (by zeroing _mag_counter) when resetting mag bias (or changing mags)
...
- so that there's new filtered data avaiable for reset
2022-04-04 10:42:54 -04:00
Daniel Agar
9a929e0857
ekf2: mag in air reset fall back to regular resetMagHeading() if realignYawGPS() fails
2022-04-04 10:42:54 -04:00
Daniel Agar
4234e9a390
ekf2: clear test ratios, flags, etc when stopping mag fusion
2022-04-04 10:42:54 -04:00
Daniel Agar
521fefc155
ekf2: mag fusion don't update all states if mag_fault or mag_field_disturbed
2022-04-04 10:42:53 -04:00
Daniel Agar
a8824b4e60
ekf2: resetMagHeading() split out simple init case
2022-04-04 10:42:53 -04:00
Daniel Agar
25a3ee0232
ekf2: move checkMagFieldStrength() to magFieldStrengthDisturbed() const method
2022-04-04 10:42:53 -04:00
Daniel Agar
9ee4bf9bf5
ekf2: delete isStrongMagneticDisturbance()
2022-04-04 10:42:53 -04:00
Daniel Agar
8643a8b4b3
ekf2: delete isYawResetAuthorized()
2022-04-04 10:42:52 -04:00
Daniel Agar
d71d6568e5
ekf2: delete isMagBiasObservable()
2022-04-04 10:42:52 -04:00
Daniel Agar
e898e29af3
ekf2: delete isYawAngleObservable()
2022-04-04 10:42:52 -04:00
Daniel Agar
e7621649bc
ekf2: add copyright header to EKFGSF_yaw and utils
2022-04-04 10:42:52 -04:00
Daniel Agar
2916ae4030
ekf2: simplify mag yaw reset request when transitioning to mag enabled
2022-04-04 10:42:51 -04:00
Daniel Agar
dedecce39f
ekf2: add mag fusion timestamps
2022-04-04 10:42:51 -04:00
Matthias Grob
dd28c3e019
battery: update average current also when no capacity is configured
2022-04-04 10:02:55 +02:00
Matthias Grob
13c3eae6d0
battery: use mechanism to keep an up to date armed state
2022-04-04 10:02:55 +02:00
Silvan Fuhrer
3f6ab5ea19
battery: improve flight time remaining improvements
...
- introduce BAT_AVRG_CURRENT param that is used for init of average current estimate
- increase filtering of average current estimation
- only update average current filter when armed
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-04-04 10:02:55 +02:00
Beat Küng
6652718354
metadata.cmake: enable ethernet parameters
2022-04-04 09:54:47 +02:00
alessandro
8af0eeae46
1011_iris_irlock: require precland ( #19431 )
2022-04-04 08:27:31 +02:00
stmoon
179820cead
boards: px4_fmu_v5x_rtps disable common telemetry modules to save flash
2022-04-02 11:46:37 -04:00
Daniel Agar
803cc6814f
boards: px4_fmu-v2_fixedwing disable drivers/camera_trigger to save flash
2022-04-01 11:08:03 -04:00
Daniel Agar
f0be554857
boards: px4_fmu-v5_uavcanv0periph disable modules to save flash
2022-03-31 09:59:58 -04:00
Matthias Grob
3aee2497bb
commander_params: add precision land option for mode switch
2022-03-30 18:11:44 +02:00
David Sidrane
d6db06faf3
px_update_git_header:Extract latest release tag
2022-03-30 11:19:02 -04:00
Daniel Agar
82c1ffb8f8
boards: px4_fmu-v5_stackcheck disable common telemetry modules to save flash
2022-03-30 10:07:05 -04:00
Alex Mikhalev
9e57c5d217
tunes: Print warning if there is a tune error
2022-03-30 09:58:33 -04:00
Alex Mikhalev
f6cda64f0d
tunes: Fixed unspecified behaviour
...
This fixes unspecified behaviour due to evaluation order of args.
It's up to the compiler whether next_number() or next_dots() is executed
first which means that the behaviour is not properly specified.
2022-03-30 09:58:33 -04:00
Kabir Mohammed
d3b3de7159
mavlink: Use round instead of ceil on BATTERY_STATUS percentage
...
Co-authored-by: Alex Mikhalev <alex@corvus-robotics.com >
2022-03-30 09:49:11 -04:00
CUAVmengxiao
1870b9245b
fmu-v5: add macro definitions for different version revisions
2022-03-29 17:09:34 -04:00
CUAVmengxiao
f540335998
spi: get the correct version revision
2022-03-29 17:09:34 -04:00
CUAVmengxiao
c0d5ae2f9f
fmu-v5: Add support for ICM-42688-P
2022-03-29 17:09:34 -04:00
Matthias Grob
7cd57b4415
FlightTaskOrbit: alert user about exceeded radius (mavlink_log)
2022-03-29 18:46:37 +02:00
Matthias Grob
3e8d2fea94
FlightTaskOrbit: alert user about exceeded radius (events)
2022-03-29 18:46:37 +02:00
Matthias Grob
8ad44ee128
FlightModeManager: remove needless space at the end of invalid task error string
2022-03-29 18:46:37 +02:00
Matthias Grob
9bdde98a68
FlightModeManager: refactor flight task switch result condition for vehicle commands
2022-03-29 18:46:37 +02:00
Matthias Grob
ffaef906c4
FlightModeManager: don't ack with result failed when parameters are invalid
...
Command denied is defined as "supported but has invalid parameters"
which matches the case.
2022-03-29 18:46:37 +02:00
Matthias Grob
fc0be6c4fc
FlightModeManager: switch to failsafe task if orbit is rejected
2022-03-29 18:46:37 +02:00
RomanBapst
18074dec5a
simulator: fix conversion from hPa to Pa
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-03-29 17:41:54 +03:00