add load_mon support for Qurt platform (#22883)

- Added check in commander to see if CPU load monitoring has been disabled before signalling overload
This commit is contained in:
Eric Katzfey
2024-03-13 18:33:58 -07:00
committed by GitHub
parent ad50afda10
commit ae947513d7
5 changed files with 11 additions and 4 deletions
+3
View File
@@ -229,6 +229,9 @@ void LoadMon::cpuload()
struct mallinfo mem = mallinfo();
cpuload.ram_usage = (float)mem.uordblks / mem.arena;
cpuload.load = 1.f - interval_idletime / interval;
#elif defined(__PX4_QURT)
cpuload.ram_usage = 0.0f;
cpuload.load = px4muorb_get_cpu_load() / 100.0f;
#endif
cpuload.timestamp = hrt_absolute_time();