mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_HAL_SITL: Accurate 10 counts
This commit is contained in:
parent
e1ec24f25d
commit
64c60c8149
@ -272,6 +272,7 @@ void HAL_SITL::run(int argc, char * const argv[], Callbacks* callbacks) const
|
|||||||
if (fill_count++ % 10 == 0) {
|
if (fill_count++ % 10 == 0) {
|
||||||
// only fill every 10 loops. This still gives us a lot of
|
// only fill every 10 loops. This still gives us a lot of
|
||||||
// protection, but saves a lot of CPU
|
// protection, but saves a lot of CPU
|
||||||
|
fill_count = 1u;
|
||||||
fill_stack_nan();
|
fill_stack_nan();
|
||||||
}
|
}
|
||||||
callbacks->loop();
|
callbacks->loop();
|
||||||
|
Loading…
Reference in New Issue
Block a user