Browse Source

HAL_SITL: update for changed API

master
Andrew Tridgell 9 years ago
parent
commit
4318fd0ab8
  1. 4
      libraries/AP_HAL_SITL/sitl_compass.cpp

4
libraries/AP_HAL_SITL/sitl_compass.cpp

@ -86,8 +86,8 @@ void SITL_State::_update_compass(float rollDeg, float pitchDeg, float yawDeg) @@ -86,8 +86,8 @@ void SITL_State::_update_compass(float rollDeg, float pitchDeg, float yawDeg)
new_mag_data -= _sitl->mag_ofs.get();
_compass->setHIL(0, new_mag_data);
_compass->setHIL(1, new_mag_data);
_compass->setHIL(0, new_mag_data, AP_HAL::micros());
_compass->setHIL(1, new_mag_data, AP_HAL::micros());
}
#endif

Loading…
Cancel
Save