mirror of https://github.com/ArduPilot/ardupilot
HAL_SITL: update for changed API
This commit is contained in:
parent
61da827c16
commit
4318fd0ab8
|
@ -86,8 +86,8 @@ void SITL_State::_update_compass(float rollDeg, float pitchDeg, float yawDeg)
|
||||||
|
|
||||||
new_mag_data -= _sitl->mag_ofs.get();
|
new_mag_data -= _sitl->mag_ofs.get();
|
||||||
|
|
||||||
_compass->setHIL(0, new_mag_data);
|
_compass->setHIL(0, new_mag_data, AP_HAL::micros());
|
||||||
_compass->setHIL(1, new_mag_data);
|
_compass->setHIL(1, new_mag_data, AP_HAL::micros());
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue