From 20c1baf5857d5e5133dac4e0caa52884dedc082f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 22 Jun 2012 08:37:04 +1000 Subject: [PATCH] SITL: changes UBlox simulation to 5Hz this matches the real UBlox driver --- libraries/Desktop/support/sitl_gps.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/Desktop/support/sitl_gps.cpp b/libraries/Desktop/support/sitl_gps.cpp index 20c08ba9bb..e59d6ec768 100644 --- a/libraries/Desktop/support/sitl_gps.cpp +++ b/libraries/Desktop/support/sitl_gps.cpp @@ -115,8 +115,8 @@ void sitl_update_gps(double latitude, double longitude, float altitude, const uint8_t MSG_VELNED = 0x12; double lon_scale; - // 4Hz - if (millis() - gps_state.last_update < 250) { + // 5Hz, to match the real UBlox config in APM + if (millis() - gps_state.last_update < 200) { return; } gps_state.last_update = millis();