mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-27 20:20:34 +08:00
terrain_estimator: add unit tests
This commit is contained in:
committed by
Mathieu Bresciani
parent
aa96fa6d9e
commit
821e1fa8fc
@@ -15,7 +15,7 @@ Flow::~Flow()
|
||||
|
||||
void Flow::send(uint64_t time)
|
||||
{
|
||||
_flow_data.dt = time - _time_last_data_sent;
|
||||
_flow_data.dt = static_cast<float>(time - _time_last_data_sent) * 1e-6f;
|
||||
_flow_data.time_us = time;
|
||||
_ekf->setOpticalFlowData(_flow_data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user