mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 12:43:35 +08:00
commander: workaround to wait 1s before param save
Without this wait, we end up saving the old parameters on Snapdragon.
This commit is contained in:
@@ -3621,6 +3621,12 @@ void *commander_low_prio_loop(void *arg)
|
|||||||
|
|
||||||
} else if (((int)(cmd.param1)) == 1) {
|
} else if (((int)(cmd.param1)) == 1) {
|
||||||
|
|
||||||
|
#ifdef __PX4_QURT
|
||||||
|
// TODO FIXME: on snapdragon the save happens to early when the params
|
||||||
|
// are not set yet. We therefore need to wait some time first.
|
||||||
|
usleep(1000000);
|
||||||
|
#endif
|
||||||
|
|
||||||
int ret = param_save_default();
|
int ret = param_save_default();
|
||||||
|
|
||||||
if (ret == OK) {
|
if (ret == OK) {
|
||||||
|
|||||||
Reference in New Issue
Block a user