mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 13:33:34 +08:00
Remove legacy imu interface
This commit is contained in:
committed by
Paul Riseborough
parent
7c3a2f839b
commit
37201fb071
@@ -123,21 +123,8 @@ bool EstimatorInterface::checkIfVehicleAtRest(float dt)
|
||||
}
|
||||
}
|
||||
|
||||
void EstimatorInterface::setIMUData(uint64_t time_usec, uint64_t delta_ang_dt, uint64_t delta_vel_dt,
|
||||
float (&delta_ang)[3], float (&delta_vel)[3])
|
||||
{
|
||||
imuSample imu_sample_new;
|
||||
imu_sample_new.delta_ang = Vector3f(delta_ang);
|
||||
imu_sample_new.delta_vel = Vector3f(delta_vel);
|
||||
|
||||
void EstimatorInterface::setMagData(const magSample &mag_sample)
|
||||
imu_sample_new.delta_ang_dt = delta_ang_dt / 1e6f;
|
||||
imu_sample_new.delta_vel_dt = delta_vel_dt / 1e6f;
|
||||
imu_sample_new.time_us = time_usec;
|
||||
|
||||
setIMUData(imu_sample_new);
|
||||
}
|
||||
|
||||
{
|
||||
if (!_initialised || _mag_buffer_fail) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user