This commit is contained in:
Your Name
2024-05-02 19:10:51 -05:00
parent 3e8215406e
commit 3bab3c8810

View File

@@ -34,7 +34,10 @@ def set_realtime_priority(level: int) -> None:
def set_core_affinity(cores: list[int]) -> None: def set_core_affinity(cores: list[int]) -> None:
if not PC: if not PC:
try: # CLEARPILOT ....
os.sched_setaffinity(0, cores) os.sched_setaffinity(0, cores)
except:
nothing=0
def config_realtime_process(cores: int | list[int], priority: int) -> None: def config_realtime_process(cores: int | list[int], priority: int) -> None: