mirror of https://github.com/ArduPilot/ardupilot
SITL: changes UBlox simulation to 5Hz
this matches the real UBlox driver
This commit is contained in:
parent
5cd5f40f09
commit
b811653800
|
@ -115,8 +115,8 @@ void sitl_update_gps(double latitude, double longitude, float altitude,
|
||||||
const uint8_t MSG_VELNED = 0x12;
|
const uint8_t MSG_VELNED = 0x12;
|
||||||
double lon_scale;
|
double lon_scale;
|
||||||
|
|
||||||
// 4Hz
|
// 5Hz, to match the real UBlox config in APM
|
||||||
if (millis() - gps_state.last_update < 250) {
|
if (millis() - gps_state.last_update < 200) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
gps_state.last_update = millis();
|
gps_state.last_update = millis();
|
||||||
|
|
Loading…
Reference in New Issue