forked from Archive/PX4-Autopilot
mavlink: streams SCALED_IMU fix gyro dt
This commit is contained in:
parent
5942194c66
commit
c97381c97f
|
@ -88,7 +88,7 @@ private:
|
|||
msg.zacc = (int16_t)accel(2);
|
||||
|
||||
// Gyroscope in mrad/s
|
||||
const float gyro_dt_inv = 1.e6f / (float)imu.delta_velocity_dt;
|
||||
const float gyro_dt_inv = 1.e6f / (float)imu.delta_angle_dt;
|
||||
const Vector3f gyro = Vector3f{imu.delta_angle} * gyro_dt_inv * 1000.0f;
|
||||
msg.xgyro = gyro(0);
|
||||
msg.ygyro = gyro(1);
|
||||
|
|
|
@ -88,7 +88,7 @@ private:
|
|||
msg.zacc = (int16_t)accel(2);
|
||||
|
||||
// Gyroscope in mrad/s
|
||||
const float gyro_dt_inv = 1.e6f / (float)imu.delta_velocity_dt;
|
||||
const float gyro_dt_inv = 1.e6f / (float)imu.delta_angle_dt;
|
||||
const Vector3f gyro = Vector3f{imu.delta_angle} * gyro_dt_inv * 1000.0f;
|
||||
msg.xgyro = gyro(0);
|
||||
msg.ygyro = gyro(1);
|
||||
|
|
|
@ -88,7 +88,7 @@ private:
|
|||
msg.zacc = (int16_t)accel(2);
|
||||
|
||||
// Gyroscope in mrad/s
|
||||
const float gyro_dt_inv = 1.e6f / (float)imu.delta_velocity_dt;
|
||||
const float gyro_dt_inv = 1.e6f / (float)imu.delta_angle_dt;
|
||||
const Vector3f gyro = Vector3f{imu.delta_angle} * gyro_dt_inv * 1000.0f;
|
||||
msg.xgyro = gyro(0);
|
||||
msg.ygyro = gyro(1);
|
||||
|
|
Loading…
Reference in New Issue