mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 07:43:33 +08:00
AttPosEKF: Moved data collection to separate function
This commit is contained in:
@@ -1395,11 +1395,10 @@ int commander_thread_main(int argc, char *argv[])
|
|||||||
if(status.condition_global_position_valid) {
|
if(status.condition_global_position_valid) {
|
||||||
set_tune_override(TONE_GPS_WARNING_TUNE);
|
set_tune_override(TONE_GPS_WARNING_TUNE);
|
||||||
status_changed = true;
|
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
|
//Got good global position estimate
|
||||||
if(!status.condition_global_position_valid) {
|
if(!status.condition_global_position_valid) {
|
||||||
status_changed = true;
|
status_changed = true;
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user