Browse Source

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
sbg
Daniel Agar 6 years ago committed by GitHub
parent
commit
891aae0377
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/modules/commander/Commander.cpp

2
src/modules/commander/Commander.cpp

@ -2485,7 +2485,7 @@ control_status_leds(vehicle_status_s *status_local, const actuator_armed_s *actu @@ -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();

Loading…
Cancel
Save