Skip to content
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

Closed
wants to merge 7 commits into from
Closed

Conversation

Stifael
Copy link
Contributor

@Stifael Stifael commented Oct 23, 2017

commander message cleanup
arm/disarm counter cleanup

@Stifael Stifael requested review from bkueng and MaEtUgR October 23, 2017 12:20
@Stifael
Copy link
Contributor Author

Stifael commented Oct 23, 2017

@MaEtUgR can you have another look at the arming/disarming logic?

Copy link
Member

@MaEtUgR MaEtUgR left a 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.

@@ -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.");
Copy link
Member

@MaEtUgR MaEtUgR Oct 23, 2017

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?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -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;
Copy link
Member

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.

Copy link
Contributor Author

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.

@Stifael
Copy link
Contributor Author

Stifael commented Oct 23, 2017

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

@dagar
Copy link
Member

dagar commented Oct 24, 2017

I wouldn't worry too much about static variables as commander is currently full of them.
After the v1.7.0 release and this PR is merged I'll take another pass at getting the initial commander class in place and we can get rid of them. #7517

MaEtUgR
MaEtUgR previously approved these changes Oct 24, 2017
Copy link
Member

@MaEtUgR MaEtUgR left a 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.

@@ -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.");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -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;
Copy link
Member

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);  

@@ -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.");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mavlink_log_info?

Copy link
Contributor Author

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

Copy link
Contributor Author

@Stifael Stifael Oct 25, 2017

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);
Copy link
Member

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.

Copy link
Member

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.

Copy link
Contributor

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.

@MaEtUgR MaEtUgR force-pushed the pr-commander_msgOutput_cleanup branch from f2666e9 to 2cbb469 Compare November 2, 2017 03:45
@MaEtUgR
Copy link
Member

MaEtUgR commented Nov 2, 2017

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? 👼

Copy link
Member

@MaEtUgR MaEtUgR left a 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

Copy link
Member

@bkueng bkueng left a 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.

@bkueng
Copy link
Member

bkueng commented Nov 2, 2017

CI failure is real:

../../src/modules/commander/state_machine_helper.cpp:75:19: fatal error: unused variable 'reason_no_gps_cmd' [-Wunused-const-variable]
static const char reason_no_gps_cmd[] = "no GPS cmd";

@MaEtUgR
Copy link
Member

MaEtUgR commented Nov 2, 2017

No, not before the release, let's make that clear. That's a good catch by CI. I need to go over it again...

@MaEtUgR MaEtUgR added this to the Release v1.8.0 milestone Nov 2, 2017
@dagar
Copy link
Member

dagar commented Jan 17, 2018

Please rebase and I'll review.

@dagar
Copy link
Member

dagar commented Jun 13, 2018

State machine changes continued in #9657

@stale
Copy link

stale bot commented Jan 20, 2019

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);
Copy link
Contributor

@Antiheavy Antiheavy Jan 20, 2019

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);
Copy link
Contributor

@Antiheavy Antiheavy Jan 20, 2019

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);
Copy link
Contributor

@Antiheavy Antiheavy Jan 20, 2019

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);
Copy link
Contributor

@Antiheavy Antiheavy Jan 20, 2019

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.");
Copy link
Contributor

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.");
Copy link
Contributor

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);
Copy link
Contributor

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);
Copy link
Contributor

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);
Copy link
Contributor

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);
Copy link
Contributor

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.");
Copy link
Contributor

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.");
Copy link
Contributor

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.");
Copy link
Contributor

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.");
Copy link
Contributor

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.");
Copy link
Contributor

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.");
Copy link
Contributor

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.");
Copy link
Contributor

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.");
Copy link
Contributor

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.");
Copy link
Contributor

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.");
Copy link
Contributor

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.");
Copy link
Contributor

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

@Antiheavy
Copy link
Contributor

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.

@MaEtUgR
Copy link
Member

MaEtUgR commented Jan 26, 2019

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.

@dagar
Copy link
Member

dagar commented Feb 6, 2019

Closing as suggested above, let's continue in a fresh PR if anything is still missing.

@dagar dagar closed this Feb 6, 2019
@MaEtUgR MaEtUgR deleted the pr-commander_msgOutput_cleanup branch February 24, 2019 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants