Commander: Add function to print health flags consistently

This enables us to have better situational awareness during development and when inspecting a system in the field as to which subsystem is currently faulty. These flags are from standard MAVLink and are not sufficient nor do they match well the actual critical path to a safe flight. This will be addressed in a second step with the addition of a new MAVLink message and new flags.
This commit is contained in:
Lorenz Meier
2020-03-15 10:50:35 +01:00
parent 9d5aebd235
commit bf3b55cac7
3 changed files with 44 additions and 0 deletions
+2
View File
@@ -292,6 +292,8 @@ extern "C" __EXPORT int commander_main(int argc, char *argv[])
PreFlightCheck::arm_requirements_t{}, status);
PX4_INFO("Prearm check: %s", prearm_check_res ? "OK" : "FAILED");
print_health_flags(status);
return 0;
}