mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-13 12:57:35 +08:00
Expand test framework and test cases (#685)
* Fix comment * Ekf wrapper for testing Add utility function for accessing information in the ekf object * Add step function for Gps sensor * Add RangeFinder and Flow to simulated sensors * Add first fusion logic tests * Add units to function name * Use EXPECT_TRUE * Adding missing qualifiers * Improve EXPECT_ calls * Improve naming
This commit is contained in:
@@ -15,7 +15,6 @@ Imu::~Imu()
|
||||
|
||||
void Imu::send(uint32_t time)
|
||||
{
|
||||
// fill imu sample with stored data
|
||||
imuSample imu_sample;
|
||||
imu_sample.time_us = time;
|
||||
imu_sample.delta_ang_dt = (time - _time_last_data_sent) * 1.e-6f;
|
||||
@@ -43,4 +42,4 @@ void Imu::setGyroData(const Vector3f& gyro)
|
||||
}
|
||||
|
||||
} // namespace sensor
|
||||
} // namespace sensor_simulator::sensor
|
||||
} // namespace sensor_simulator
|
||||
|
||||
Reference in New Issue
Block a user