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

Fix flight modes being announced multiple times, plus others #12307

Merged
merged 3 commits into from
Jan 9, 2025

Conversation

DonLakeFlyer
Copy link
Contributor

Commit text says it all...

@@ -283,7 +283,6 @@ void Vehicle::_commonInit()
_vehicleLinkManager = new VehicleLinkManager (this);

connect(_standardModes, &StandardModes::modesUpdated, this, &Vehicle::flightModesChanged);
connect(_standardModes, &StandardModes::modesUpdated, this, [this](){ Vehicle::flightModeChanged(flightMode()); });
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bytesByHarsh This was causing the current flight mode when this happens to be announced a second time. I think it's ok to remove this since at worse there could have been a name change on the flight mode. The actual flight mode would not have changed. So the user would have been previously notified of the current flight mode. I don't think there is a need to announce if just the name changed which would be odd anyway.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes true, the flight mode change we have shifted to the firmware plugin class so it should be ok to remove from here.

@HTRamsey
Copy link
Collaborator

HTRamsey commented Jan 8, 2025

I guess this fixes that reset model warning?

@DonLakeFlyer
Copy link
Contributor Author

Right

@HTRamsey HTRamsey merged commit 0085c5c into master Jan 9, 2025
8 checks passed
@HTRamsey HTRamsey deleted the FlightMode branch January 9, 2025 07:50
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.

3 participants