alexklimaj
af58c412c3
Fix uavcan battery causing immediate RTL time remaining low
3 years ago
Daniel Agar
d5226b28ce
drivers/rc_input: ensure RC inversion is disabled initially and latch RC_INPUT_PROTO conservatively
...
- this allows jumping straight to a non-SBUS RC protocol
- increased the scan time per protocol 300->500 ms, which the newer DSM parser seems to need in some cases.
- only set RC_INPUT_PROTO if we've had a successful RC lock for > 3 seconds
3 years ago
Beat Küng
b091ea9fd9
log_writer_file: fix corner case when mission log is enabled
...
Normally _should_run for mission is only ever true if _should_run for the
normal log is. There are exceptions though:
- the log buffer fails to allocate
- there was a write failure (e.g. due to SD card removal)
In that situation, the writer would not wait anymore but busy-loop.
3 years ago
Beat Küng
9e91ca8294
log_writer_file: protect access to _should_run, use px4::atomicbool for _exit_thread
3 years ago
Igor Mišić
8302f076e7
uavcan: use timer 6 by default on stm32f7
3 years ago
Thomas Stastny
de26ffa6e0
fw pos ctrl: turn back to takeoff point with npfg
3 years ago
Thomas Stastny
f60d38db65
fw pos ctrl: add missing guidance control interval setting to control_manual_position()
3 years ago
Thomas Stastny
5e3c8d2fa0
fw pos ctrl: fix state switching logic for takeoff and landing
3 years ago
Matthias Grob
90998837ec
Commander: ensure diconnected battery is cleared from bit field
3 years ago
Beat Küng
8cff9a1e04
commander: fix incorrect return in set_link_loss_nav_state()
...
If both local position and altitude were not valid, then both RC loss and
datalink loss would not trigger any failsafe at all, independently from
the configured action.
3 years ago
bresch
f8ff34f82d
ekf2: optimize KHP computation
...
Calculating K(HP) takes less operations than (KH)P because K and H are
vectors.
Without considering the sparsity optimization:
- KH (24*24 operations) is then a 24x24 matrix an it takes
24^3 operations to multiply it with P. Total: 14400 op
- HP (24*(24+24-1) operations) is a row vector
and it takes 24 operations to left-multiply it by K. Total:1152 op
3 years ago
Beat Küng
e69d9ec48f
dshot: avoid using pwm failsafe params when dynamic mixing is enabled
3 years ago
Beat Küng
f033e164fe
fix dshot: remove setAllFailsafeValues
...
Fixes a regression from c1e5e666f0
,
where with static mixers the dshot outputs would go to max instead of 0
in a failsafe case.
3 years ago
Daniel Agar
41191765ad
drivers/rc_input: RC_INPUT_PROTO parameter minimal implementation ( #19539 )
...
Co-authored-by: chris1seto <chris12892@gmail.com>
Co-authored-by: chris1seto <chris12892@gmail.com>
3 years ago
Daniel Agar
fc7e979d84
boards: px4_fmu-v5_uavcanv0periph disable modules to save flash
3 years ago
Daniel Agar
7ab9b0c6e2
boards: cubepilot_cubeorange_test disable examples/fake_gps to save flash
3 years ago
Daniel Agar
f390f52058
drivers/differential_pressure: remove lib/drivers/airspeed dependency and cleanup
...
- split ms4525_airspeed into separate ms4515 and ms4525 drivers
3 years ago
Daniel Agar
d1d15a6f6d
differential pressure remove filters from drivers and average in sensors/airspeed
3 years ago
Daniel Agar
258f558fea
apply differential pressure calibration (SENS_DPRES_OFF) centrally
...
- remove drv_airspeed.h and ioctls
3 years ago
JaeyoungLim
c6ab4c466e
Separate takeoff and landing to individual fixed wing states for FW pos control ( #19495 )
3 years ago
Daniel Agar
d6210d1725
boards: px4_fmu-v6x_default disable common barometers to save flash
3 years ago
Daniel Agar
3d7a6b4021
mc_pos_control: silence invalid setpoint warning when disarmed
3 years ago
Daniel Agar
b2bcd2631a
boards/diatone/mamba-f405-mk2: disable modules to save flash
3 years ago
Daniel Agar
c8d2d83e55
boards: px4_fmu-v2 restore systemcmds/ver needed for board init
3 years ago
Daniel Agar
7bb789cb23
boards: update bootloaders to latest
3 years ago
Daniel Agar
d8a57e15b0
boards/mro/ctrl-zero-classic: fix code style
3 years ago
Daniel Agar
248f42f9ec
boards/diatone/mamba-f405-mk2: fix code style
3 years ago
achim
adacdad32d
boards: add new Diatone Mamba F405 mk2
3 years ago
achim
1bf16cb4df
boards: add new mRo Control Zero Classic
3 years ago
Daniel Agar
3d590af115
mc_att_control: only apply quat reset if estimate is newer than setpoint
3 years ago
Daniel Agar
23c89429ac
systemcmds/param: set-default should mark parameter active to avoid race conditions
3 years ago
bresch
e32a484906
[AUTO COMMIT] update change indication
3 years ago
bresch
db0274e19b
ekf: robustify bad_acc_vertical check
...
when the vertical pos or vel innov ratio is above the threshold, the
other one needs to be significant too and not just positive to trigger
the failure
3 years ago
Daniel Agar
980f696023
commander: mag calibration tolerate fit failure if sensor disabled
3 years ago
Daniel Agar
89374b2e1d
mavlink: delete Mavlink instance if early startup fails
3 years ago
Alex Mikhalev
45dff7f71a
commander: Add prearm check for flight termination
3 years ago
Daniel Agar
6359c8c008
mavlink: shell expand locking ( #19308 )
...
- on some H7 boards (cuav x7pro tested) there's an occasional hard fault when starting the mavlink shell that is no longer reproducible with the slightly expanded locking
- this is likely just changing the timing (holding the sched lock for longer), but this should be harmless for now until we can identify the root cause
3 years ago
Junwoo Hwang
af839c828d
Set Tune's Volume for Power-Off in Commander to default volume of tune_control message
3 years ago
Daniel Agar
8df3932d6a
icm20948: disable debug output (_debug_enabled=true)
3 years ago
Kirill Shilov
6981a70859
boards: new Sky-Drones AIRLink board support
3 years ago
Daniel Agar
503f97c8bc
logger: add default ground truth logging for HITL/SITL
3 years ago
Silvan Fuhrer
680fe86c05
FlightTaskAuto: fix Weather Vane during landing
...
Weather vane should only set a yawrate setpoint, but no yaw setpoint.
Setting it to NAN when WV is active makes sure that whatever _yaw_setpoint
is set previously (e.g. through Waypoint) is not used.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
3 years ago
Silvan Fuhrer
ae5725e71a
ROMFS: fix typo in convergence and clair configs
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
3 years ago
Silvan Fuhrer
bd1b0cab73
Mission: don't do anything in set_current_mission_index() when index=current already
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
3 years ago
Daniel Agar
6f87a4546d
platforms/nuttx: cdc_acm_check implement mavlink reboot directly
3 years ago
Daniel Agar
9073f3ccdf
px4flow allow delayed background startup
3 years ago
mcsauder
fef47513f5
Add gyro and accel range register values to the icm42688p driver.
3 years ago
Hamish Willee
e1d3728208
13004_quad+_tailsitter - outputs mixed up
3 years ago
Daniel Agar
435a474dff
Update submodule GPSDrivers to latest Thu Apr 21 12:38:20 UTC 2022
...
- GPSDrivers in PX4/Firmware (e9c07fac6f
): ddb1825fe3
- GPSDrivers current upstream: 6534b050ee
- Changes: ddb1825fe3...6534b050ee
6534b05 2022-04-19 Jonas Perolini - ubx: disable gps heading for in RTK float fix type (#104 )
Co-authored-by: PX4 BuildBot <bot@px4.io>
3 years ago
bresch
e9c07fac6f
EKF: move python tuning tools to EKF module
3 years ago