Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/modules/commander/HomePosition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ void HomePosition::update(bool set_automatically, bool check_if_changed)
const float baro_alt = baro_data.baro_alt_meter;

if (_last_baro_timestamp != 0) {
const float dt = baro_data.timestamp - _last_baro_timestamp;
const float dt = 1e-6f * (baro_data.timestamp - _last_baro_timestamp);
_lpf_baro.update(baro_alt, dt);

} else {
Expand Down
Loading