Skip to content

Conversation

unjambonakap
Copy link
Contributor

@unjambonakap unjambonakap commented Oct 8, 2024

Fixing bug where more popups open when relaunching ESC calibration

Description

Tested with px4.
Launching ESC calibration without battery status fails the check_battery_disconnect() in src/modules/commander/esc_calibration.cpp (px4-autopilot)
Disconnect battery and try again status is sent.
but QGC does not unsubscribe _handleVehicleTextMessage because _stopCalibration is not called (early exit)

-> causes stacking of popups the more we run ESC calibration

Test Steps

Launch ESC calibration without battery status for FC (eg no battery, FC powered by directly).
An error message appears: "Disconnect battery and try again"

Relaunch again
Same error message, this time only a single popup (because _stopCalibration unsubscribes _handleVehicleTextMessage)

Checklist:

Related Issue

@DonLakeFlyer
Copy link
Contributor

Looks good, thanks

@DonLakeFlyer DonLakeFlyer merged commit 14e2ad6 into mavlink:master Oct 11, 2024
7 checks passed
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.

2 participants