mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Replay: pass delta angle time if available
This commit is contained in:
parent
be41d402b5
commit
909a46a33b
@ -242,7 +242,11 @@ void LR_MsgHandler_IMT_Base::update_from_msg_imt(uint8_t imu_offset, uint8_t *ms
|
|||||||
if (gyro_mask & this_imu_mask) {
|
if (gyro_mask & this_imu_mask) {
|
||||||
Vector3f d_angle;
|
Vector3f d_angle;
|
||||||
require_field(msg, "DelA", d_angle);
|
require_field(msg, "DelA", d_angle);
|
||||||
ins.set_delta_angle(imu_offset, d_angle);
|
float d_angle_dt;
|
||||||
|
if (!field_value(msg, "DelaT", d_angle_dt)) {
|
||||||
|
d_angle_dt = 0;
|
||||||
|
}
|
||||||
|
ins.set_delta_angle(imu_offset, d_angle, d_angle_dt);
|
||||||
}
|
}
|
||||||
if (accel_mask & this_imu_mask) {
|
if (accel_mask & this_imu_mask) {
|
||||||
float dvt = 0;
|
float dvt = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user