commander increase cpu overload threshold

* the large 20% margin is no longer appropriate now that nearly all work in the system is
scheduled (moved out of ISRs) and represented in the load percentage
 * closes https://github.com/PX4/Firmware/issues/12753
This commit is contained in:
Daniel Agar
2019-09-01 14:55:05 -04:00
committed by GitHub
parent 9aad996b04
commit 891aae0377
+1 -1
View File
@@ -2485,7 +2485,7 @@ control_status_leds(vehicle_status_s *status_local, const actuator_armed_s *actu
{
static hrt_abstime overload_start = 0;
bool overload = (cpuload_local->load > 0.80f) || (cpuload_local->ram_usage > 0.98f);
bool overload = (cpuload_local->load > 0.95f) || (cpuload_local->ram_usage > 0.98f);
if (overload_start == 0 && overload) {
overload_start = hrt_absolute_time();