bluerobotics / BlueOS

The open source platform for ROV, USV, robotic system operation, development, and expansion.
https://blueos.cloud/docs/
Other
168 stars 80 forks source link

Ardupilot loop timings improvement #1161

Open Williangalvani opened 2 years ago

Williangalvani commented 2 years ago

Add to ArdupilotManager.py ardupilot launch cmdline: --cpu-affinity 3

Add to /boot/cmdline : isolcpus=3 nohz_full=3

ideas from here: https://www.suse.com/c/cpu-isolation-practical-example-part-5/

Moving the interrupts didn't seem to help.

This makes the last CPU exclusive for ardupilot. Preliminar tests looked decent, though not ground-breaking:

Before:

image

After:

image

For this to be implemented we need:

patrickelectric commented 5 months ago

@Williangalvani is this still a thing ?