We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea0c9c4 commit f0ddfc5Copy full SHA for f0ddfc5
src/controller.cpp
@@ -118,6 +118,7 @@ void Controller::run()
118
int32_t dt_us = (RF_.estimator_.state().timestamp_us - prev_time_us_);
119
if (dt_us < 0) {
120
RF_.state_manager_.set_error(StateManager::ERROR_TIME_GOING_BACKWARDS);
121
+ prev_time_us_ = RF_.estimator_.state().timestamp_us;
122
return;
123
}
124
prev_time_us_ = RF_.estimator_.state().timestamp_us;
src/estimator.cpp
@@ -130,6 +130,7 @@ void Estimator::run()
130
last_time_ = now_us;
131
last_acc_update_us_ = now_us;
132
last_extatt_update_us_ = now_us;
133
+ state_.timestamp_us = now_us;
134
135
} else if (now_us < last_time_) {
136
// this shouldn't happen
0 commit comments