Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SITL] parameterise and reduce TASK_SERIAL rate #8921

Merged
merged 1 commit into from
Mar 28, 2023

Conversation

stronnag
Copy link
Collaborator

@stronnag stronnag commented Mar 28, 2023

Currently, the SITL cannot be armed on old / slow hardware or VMs due to OVERLOAD from:

    rescheduleTask(TASK_SERIAL, 1);

even if after the scheduler throttles the specified 1us to 100us. This causes overload due to the excessive activity of the serial task.

This patch reschedules at 500us, but I'm not sure that any reschedule is really necessary. Still, this seems safe; tested on a 2009 "Intel® AtomTM processor N270 (1.6GHz single core with HT)" (ia32) as working correctly with fl2sitl as the X-Plane protocol "simulator".

@DzikuVx DzikuVx added this to the 6.1 milestone Mar 28, 2023
@stronnag stronnag merged commit b71148e into release_6.1.0 Mar 28, 2023
sensei-hacker pushed a commit to sensei-hacker/inav_unofficial_targets that referenced this pull request Oct 4, 2023
@DzikuVx DzikuVx deleted the jh-fix_sitl_overload branch April 14, 2024 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants