Skip to content
Snippets Groups Projects
Commit 248320b3 authored by Daniel Agar's avatar Daniel Agar Committed by Beat Küng
Browse files

PreflightCheck trivial astyle fix

parent 6fb7cda9
No related branches found
No related tags found
No related merge requests found
...@@ -576,10 +576,12 @@ static bool ekf2Check(orb_advert_t *mavlink_log_pub, vehicle_status_s &vehicle_s ...@@ -576,10 +576,12 @@ static bool ekf2Check(orb_advert_t *mavlink_log_pub, vehicle_status_s &vehicle_s
// check accelerometer delta velocity bias estimates // check accelerometer delta velocity bias estimates
param_get(param_find("COM_ARM_EKF_AB"), &test_limit); param_get(param_find("COM_ARM_EKF_AB"), &test_limit);
for (uint8_t index=13; index<16; index++) {
for (uint8_t index = 13; index < 16; index++) {
// allow for higher uncertainty in estimates for axes that are less observable to prevent false positives // allow for higher uncertainty in estimates for axes that are less observable to prevent false positives
// adjust test threshold by 3-sigma // adjust test threshold by 3-sigma
float test_uncertainty = 3.0f * sqrtf(fmaxf(status.covariances[index],0.0f)); float test_uncertainty = 3.0f * sqrtf(fmaxf(status.covariances[index], 0.0f));
if (fabsf(status.states[index]) > test_limit + test_uncertainty) { if (fabsf(status.states[index]) > test_limit + test_uncertainty) {
if (report_fail) { if (report_fail) {
mavlink_log_critical(mavlink_log_pub, "Preflight Fail: High Accelerometer Bias"); mavlink_log_critical(mavlink_log_pub, "Preflight Fail: High Accelerometer Bias");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment