-
Notifications
You must be signed in to change notification settings - Fork 13.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pr commander msg output cleanup #8175
Conversation
@MaEtUgR can you have another look at the arming/disarming logic? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's very hard to review when messages and multiple arm logic changes are squashed together. I didn't see anything very obvious... But I would definitely not use static variables for the stick counter.
src/modules/commander/commander.cpp
Outdated
@@ -937,7 +937,7 @@ bool handle_command(struct vehicle_status_s *status_local, const struct safety_s | |||
} else { | |||
// Refuse to arm if preflight checks have failed | |||
if ((!status_local->hil_state) != vehicle_status_s::HIL_STATE_ON && !status_flags.condition_system_sensors_initialized) { | |||
mavlink_log_critical(&mavlink_log_pub, "Arming DENIED. Preflight checks have failed."); | |||
mavlink_log_info(&mavlink_log_pub, "Arming DENIED. Preflight checks have failed."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is that not critical? how much more critical can it be than not able to fly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Stifael ?
@@ -2736,6 +2734,10 @@ int commander_thread_main(int argc, char *argv[]) | |||
(status.is_rotary_wing || (!status.is_rotary_wing && land_detector.landed)) && | |||
(stick_in_lower_left || (arm_button_pressed && arming_button_switch_allowed) || arm_switch_to_disarm_transition) ) { | |||
|
|||
/* counter for having stick in disarming position */ | |||
static unsigned stick_off_counter = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you replace them with static variables? I would not do that, in my opinion this makes it a lot less clear with declaration, initialization and so on.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it limits the scope to this part of the code. the commander already has a lot of global (modular scope) variables.
why would you not use a static variable for this? I am usually against static variables as well, but in this case I think it is appropriate because it restricts the scope to that part of the code that only uses it. otherwise i am quite confident someone else will use that variable for something else |
I wouldn't worry too much about static variables as commander is currently full of them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I let myself convince in person that the static
makes sense for this special case. Could you do a quick sanity check with hardware that basic arming did not by chance catch a bug? This part is pretty safety critical.
src/modules/commander/commander.cpp
Outdated
@@ -937,7 +937,7 @@ bool handle_command(struct vehicle_status_s *status_local, const struct safety_s | |||
} else { | |||
// Refuse to arm if preflight checks have failed | |||
if ((!status_local->hil_state) != vehicle_status_s::HIL_STATE_ON && !status_flags.condition_system_sensors_initialized) { | |||
mavlink_log_critical(&mavlink_log_pub, "Arming DENIED. Preflight checks have failed."); | |||
mavlink_log_info(&mavlink_log_pub, "Arming DENIED. Preflight checks have failed."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Stifael ?
src/modules/commander/commander.cpp
Outdated
@@ -1757,12 +1758,13 @@ int commander_thread_main(int argc, char *argv[]) | |||
int32_t ef_time_thres = 1000.0f; | |||
uint64_t timestamp_engine_healthy = 0; /**< absolute time when engine was healty */ | |||
|
|||
int32_t disarm_when_landed = 0; | |||
float disarm_when_landed = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: should be = 0.f
In https://github.com/PX4/Firmware/blob/91b923a3db445611c3eeeab15551de9a32d31d87/src/modules/commander/commander.cpp#L1862
This will first cast to uint64_t, dropping any decimal places, and then do the multiplication. It should be:
(hrt_abstime)(disarm_when_landed * 1000000.f)
And in https://github.com/PX4/Firmware/blob/91b923a3db445611c3eeeab15551de9a32d31d87/src/modules/commander/commander.cpp#L2247
It should be made explicit that it's a float:
auto_disarm_hysteresis.set_hysteresis_time_from(false, disarm_when_landed * 1000000.f);
src/modules/commander/commander.cpp
Outdated
@@ -2033,7 +2035,7 @@ int commander_thread_main(int argc, char *argv[]) | |||
status_flags.barometer_failure = false; | |||
status_changed = true; | |||
if (status_flags.ever_had_barometer_data) { | |||
mavlink_log_critical(&mavlink_log_pub, "baro healthy"); | |||
mavlink_log_critical(&mavlink_log_pub, "Barometer healthy."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mavlink_log_info
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
? should I use info?
I just changed the message
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed. why should we send out message to the user when something is healthy
*/ | ||
PARAM_DEFINE_INT32(COM_DISARM_LAND, 0); | ||
PARAM_DEFINE_FLOAT(COM_DISARM_LAND, -1.0f); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI this will reset the parameter to default for anyone that's bothered to configured it. In this case I think we can live with it, but it's something to be aware of.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This lines does not come alone. In this pr there is a feature I implemented which allows to set auto disarm to less than one second (making it float).
see https://github.com/PX4/Firmware/pull/8175/files#diff-1d51a813dcb26f46616f71f28aacc70dR2247
This requires the parameter to be -1 by default because of float comparison so the change is needed. But thanks for pointing out the user perspective side-effects.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are these changes still valid? they seem out of scope of the title of the PR.
f2666e9
to
2cbb469
Compare
I rebased on master and added 61abb5b to make initialization consistent with the usage in the code later on: https://github.com/PX4/Firmware/pull/8175/files#diff-1d51a813dcb26f46616f71f28aacc70dR2234 @bkueng want to have a look again? 👼 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
static stick_counter accepted, float problems solved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to merge, and thanks for the update @MaEtUgR. But I'm not sure if we want to take this in right before the release.
CI failure is real:
|
No, not before the release, let's make that clear. That's a good catch by CI. I need to go over it again... |
Please rebase and I'll review. |
State machine changes continued in #9657 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@@ -152,7 +152,7 @@ static bool magnometerCheck(orb_advert_t *mavlink_log_pub, unsigned instance, bo | |||
|
|||
if (ret != OK) { | |||
if (report_fail) { | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: MAG #%u SELFTEST FAILED", instance); | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: MAGNETOMETER #%u SELFTEST FAILED.", instance); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Capitalization and wording should be updated for consistency with this PR: https://github.com/PX4/Firmware/pull/10586/files
Suggested new text: "Preflight Fail: Compass #%u self test failed"
@@ -251,7 +251,7 @@ static bool accelerometerCheck(orb_advert_t *mavlink_log_pub, unsigned instance, | |||
if (!h.isValid()) { | |||
if (!optional) { | |||
if (report_fail) { | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: NO ACCEL SENSOR #%u", instance); | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: NO ACCELEROMETER SENSOR #%u.", instance); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change no longer needed. Text already improved in this more recent PR: https://github.com/PX4/Firmware/pull/10586/files#diff-a2bcb238e25d8a97ab2aee48f54dbc48R285
@@ -262,7 +262,7 @@ static bool accelerometerCheck(orb_advert_t *mavlink_log_pub, unsigned instance, | |||
|
|||
if (ret) { | |||
if (report_fail) { | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: ACCEL #%u UNCALIBRATED", instance); | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: ACCELEROMETER #%u UNCALIBRATED.", instance); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Capitalization already improved in this more recent PR: https://github.com/PX4/Firmware/pull/10586/files#diff-a2bcb238e25d8a97ab2aee48f54dbc48R262
However, using full word "accelerometer" is probably better than "Accel"
Suggested new text: "Preflight Fail: accelerometer #%u uncalibrated"
@@ -272,7 +272,7 @@ static bool accelerometerCheck(orb_advert_t *mavlink_log_pub, unsigned instance, | |||
|
|||
if (ret != OK) { | |||
if (report_fail) { | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: ACCEL #%u TEST FAILED: %d", instance, ret); | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: ACCELEROMETER #%u TEST FAILED: %d.", instance, ret); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Capitalization and wording should be updated for consistency with this PR: #10586
Suggested new text: "Preflight Fail: accelerometer #%u test fails: %d"
@@ -290,15 +290,15 @@ static bool accelerometerCheck(orb_advert_t *mavlink_log_pub, unsigned instance, | |||
|
|||
if (accel_magnitude < 4.0f || accel_magnitude > 15.0f /* m/s^2 */) { | |||
if (report_fail) { | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: ACCEL RANGE, hold still on arming"); | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: ACCEL RANGE, hold still on arming."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change no longer needed. Text already improved in this more recent PR:
https://github.com/PX4/Firmware/pull/10586/files#diff-a2bcb238e25d8a97ab2aee48f54dbc48R274
} | ||
/* this is frickin' fatal */ | ||
success = false; | ||
goto out; | ||
} | ||
} else { | ||
if (report_fail) { | ||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: ACCEL READ"); | ||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: ACCELEROMETER READ."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Capitalization and wording should be updated for consistency with this PR: #10586
Suggested new text: "Preflight Fail: accelerometer read"
@@ -324,7 +324,7 @@ static bool gyroCheck(orb_advert_t *mavlink_log_pub, unsigned instance, bool opt | |||
if (!h.isValid()) { | |||
if (!optional) { | |||
if (report_fail) { | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: NO GYRO SENSOR #%u", instance); | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: NO GYRO SENSOR #%u.", instance); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change no longer needed. Text already improved in this more recent PR:
https://github.com/PX4/Firmware/pull/10586/files#diff-a2bcb238e25d8a97ab2aee48f54dbc48R332
@@ -335,7 +335,7 @@ static bool gyroCheck(orb_advert_t *mavlink_log_pub, unsigned instance, bool opt | |||
|
|||
if (ret) { | |||
if (report_fail) { | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: GYRO #%u UNCALIBRATED", instance); | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: GYRO #%u UNCALIBRATED.", instance); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change no longer needed. Text already improved in this more recent PR:
https://github.com/PX4/Firmware/pull/10586/files#diff-a2bcb238e25d8a97ab2aee48f54dbc48R326
@@ -345,7 +345,7 @@ static bool gyroCheck(orb_advert_t *mavlink_log_pub, unsigned instance, bool opt | |||
|
|||
if (ret != OK) { | |||
if (report_fail) { | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: GYRO #%u SELFTEST FAILED", instance); | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: GYRO #%u SELFTEST FAILED.", instance); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Capitalization and wording should be updated for consistency with this PR: #10586
Suggested new text: "Preflight Fail: gyro #%u self test failed"
@@ -368,7 +368,7 @@ static bool baroCheck(orb_advert_t *mavlink_log_pub, unsigned instance, bool opt | |||
if (!h.isValid()) { | |||
if (!optional) { | |||
if (report_fail) { | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: NO BARO SENSOR #%u", instance); | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: NO BAROMETER SENSOR #%u.", instance); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change no longer needed. Text already improved in this more recent PR:
https://github.com/PX4/Firmware/pull/10586/files#diff-a2bcb238e25d8a97ab2aee48f54dbc48R366
@@ -405,7 +405,7 @@ static bool airspeedCheck(orb_advert_t *mavlink_log_pub, bool optional, bool rep | |||
if ((orb_copy(ORB_ID(differential_pressure), fd_diffpres, &differential_pressure) != PX4_OK) || | |||
(hrt_elapsed_time(&differential_pressure.timestamp) > 1000000)) { | |||
if (report_fail) { | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: AIRSPEED SENSOR MISSING"); | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: AIRSPEED SENSOR MISSING."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change no longer needed. Text already improved in this more recent PR:
https://github.com/PX4/Firmware/pull/10586/files#diff-a2bcb238e25d8a97ab2aee48f54dbc48R392
@@ -414,7 +414,7 @@ static bool airspeedCheck(orb_advert_t *mavlink_log_pub, bool optional, bool rep | |||
if ((orb_copy(ORB_ID(airspeed), fd_airspeed, &airspeed) != PX4_OK) || | |||
(hrt_elapsed_time(&airspeed.timestamp) > 1000000)) { | |||
if (report_fail) { | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: AIRSPEED SENSOR MISSING"); | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: AIRSPEED SENSOR MISSING."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change no longer needed. Text already improved in this more recent PR:
https://github.com/PX4/Firmware/pull/10586/files#diff-a2bcb238e25d8a97ab2aee48f54dbc48R403
@@ -428,7 +428,7 @@ static bool airspeedCheck(orb_advert_t *mavlink_log_pub, bool optional, bool rep | |||
*/ | |||
if (prearm && fabsf(airspeed.confidence) < 0.95f) { | |||
if (report_fail) { | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: AIRSPEED SENSOR STUCK"); | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: AIRSPEED SENSOR STUCK."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change no longer needed. Text already improved in this more recent PR:
https://github.com/PX4/Firmware/pull/10586/files#diff-a2bcb238e25d8a97ab2aee48f54dbc48R419
@@ -441,7 +441,7 @@ static bool airspeedCheck(orb_advert_t *mavlink_log_pub, bool optional, bool rep | |||
*/ | |||
if (fabsf(differential_pressure.differential_pressure_filtered_pa) > 15.0f && !prearm) { | |||
if (report_fail) { | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: CHECK AIRSPEED CAL OR PITOT"); | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: CHECK AIRSPEED CAL OR PITOT."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change no longer needed. Text already improved in this more recent PR:
https://github.com/PX4/Firmware/pull/10586/files#diff-a2bcb238e25d8a97ab2aee48f54dbc48R434
@@ -481,7 +481,7 @@ static bool gnssCheck(orb_advert_t *mavlink_log_pub, bool report_fail, bool &loc | |||
//Report failure to detect module | |||
if (!success) { | |||
if (report_fail) { | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: GPS RECEIVER MISSING"); | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: GPS RECEIVER MISSING."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm... is this warning still around? this might not be applicable anymore...
@@ -506,7 +506,7 @@ static bool ekf2Check(orb_advert_t *mavlink_log_pub, bool optional, bool report_ | |||
param_get(param_find("COM_ARM_EKF_HGT"), &test_limit); | |||
if (status.hgt_test_ratio > test_limit) { | |||
if (report_fail) { | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: EKF HGT ERROR"); | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: EKF HGT ERROR."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change no longer needed. Text already improved in this more recent PR:
https://github.com/PX4/Firmware/pull/10586/files#diff-a2bcb238e25d8a97ab2aee48f54dbc48R533
@@ -516,7 +516,7 @@ static bool ekf2Check(orb_advert_t *mavlink_log_pub, bool optional, bool report_ | |||
param_get(param_find("COM_ARM_EKF_VEL"), &test_limit); | |||
if (status.vel_test_ratio > test_limit) { | |||
if (report_fail) { | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: EKF VEL ERROR"); | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: EKF VEL ERROR."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change no longer needed. Text already improved in this more recent PR:
https://github.com/PX4/Firmware/pull/10586/files#diff-a2bcb238e25d8a97ab2aee48f54dbc48R545
@@ -526,7 +526,7 @@ static bool ekf2Check(orb_advert_t *mavlink_log_pub, bool optional, bool report_ | |||
param_get(param_find("COM_ARM_EKF_POS"), &test_limit); | |||
if (status.pos_test_ratio > test_limit) { | |||
if (report_fail) { | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: EKF HORIZ POS ERROR"); | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: EKF HORIZ POS ERROR."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change no longer needed. Text already improved in this more recent PR:
https://github.com/PX4/Firmware/pull/10586/files#diff-a2bcb238e25d8a97ab2aee48f54dbc48R557
@@ -562,7 +562,7 @@ static bool ekf2Check(orb_advert_t *mavlink_log_pub, bool optional, bool report_ | |||
param_get(param_find("COM_ARM_EKF_YAW"), &test_limit); | |||
if (status.mag_test_ratio > test_limit) { | |||
if (report_fail) { | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: EKF YAW ERROR"); | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: EKF YAW ERROR."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change no longer needed. Text already improved in this more recent PR:
https://github.com/PX4/Firmware/pull/10586/files#diff-a2bcb238e25d8a97ab2aee48f54dbc48R569
@@ -572,7 +572,7 @@ static bool ekf2Check(orb_advert_t *mavlink_log_pub, bool optional, bool report_ | |||
param_get(param_find("COM_ARM_EKF_AB"), &test_limit); | |||
if (fabsf(status.states[13]) > test_limit || fabsf(status.states[14]) > test_limit || fabsf(status.states[15]) > test_limit) { | |||
if (report_fail) { | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: EKF HIGH IMU ACCEL BIAS"); | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: EKF HIGH IMU ACCELEROMETER BIAS."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change no longer needed. Text already improved in this more recent PR:
https://github.com/PX4/Firmware/pull/10586/files#diff-a2bcb238e25d8a97ab2aee48f54dbc48R582
@@ -582,7 +582,7 @@ static bool ekf2Check(orb_advert_t *mavlink_log_pub, bool optional, bool report_ | |||
param_get(param_find("COM_ARM_EKF_GB"), &test_limit); | |||
if (fabsf(status.states[10]) > test_limit || fabsf(status.states[11]) > test_limit || fabsf(status.states[12]) > test_limit) { | |||
if (report_fail) { | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: EKF HIGH IMU GYRO BIAS"); | |||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: EKF HIGH IMU GYRO BIAS."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change no longer needed. Text already improved in this more recent PR:
https://github.com/PX4/Firmware/pull/10586/files#diff-a2bcb238e25d8a97ab2aee48f54dbc48R595
I realize this PR is very old. I wanted to point out that a bunch of it was implemented in this PR #10586 I made a bunch of specific in-line comments in case it's worth cleaning up the remaining items. |
Thanks @Antiheavy for your detailed checks. I think this PR is too outdated to be easily rebased... hence someone would need to go through if something is still missing. I'm tempted to just close it and continue with improvements on the current master. |
Closing as suggested above, let's continue in a fresh PR if anything is still missing. |
commander message cleanup
arm/disarm counter cleanup