mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
AttPosEKF: Moved data collection to separate function
This commit is contained in:
parent
f5534dd5c1
commit
76901c6414
@ -1395,11 +1395,10 @@ int commander_thread_main(int argc, char *argv[])
|
||||
if(status.condition_global_position_valid) {
|
||||
set_tune_override(TONE_GPS_WARNING_TUNE);
|
||||
status_changed = true;
|
||||
status.condition_global_position_valid = false;
|
||||
}
|
||||
|
||||
status.condition_global_position_valid = false;
|
||||
}
|
||||
else if(hrt_absolute_time() > POSITION_TIMEOUT) {
|
||||
else if(global_position.timestamp != 0) {
|
||||
//Got good global position estimate
|
||||
if(!status.condition_global_position_valid) {
|
||||
status_changed = true;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user