Browse Source

AttPosEKF: Moved data collection to separate function

sbg
Johan Jansen 10 years ago
parent
commit
76901c6414
  1. 5
      src/modules/commander/commander.cpp
  2. 1390
      src/modules/ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp

5
src/modules/commander/commander.cpp

@ -1395,11 +1395,10 @@ int commander_thread_main(int argc, char *argv[]) @@ -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;
}
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;

1390
src/modules/ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save