mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 16:47:35 +08:00
still need this workaround to avoid hardfault
This commit is contained in:
committed by
Lorenz Meier
parent
db858a853a
commit
8a77fec9c8
@@ -2295,8 +2295,9 @@ int commander_thread_main(int argc, char *argv[])
|
||||
* rejection. Back off 2 seconds to not overlay
|
||||
* home tune.
|
||||
*/
|
||||
uint64_t ts = _home.timestamp;
|
||||
if (status_flags.condition_home_position_valid &&
|
||||
(hrt_elapsed_time(&_home.timestamp) > 2000000) &&
|
||||
(hrt_elapsed_time(&ts) > 2000000) &&
|
||||
_last_mission_instance != mission_result.instance_count) {
|
||||
if (!mission_result.valid) {
|
||||
/* the mission is invalid */
|
||||
|
||||
Reference in New Issue
Block a user