Repository navigation
[WIP] Betaflight-style "Reorder motors" dialog, as an alternative to the Mixer Wizard - #2865
Draft
GrumpyOldNerd wants to merge 1 commit into
Draft
GrumpyOldNerd wants to merge 1 commit into
GrumpyOldNerd wants to merge 1 commit into
Conversation
Placeholder commit for the draft PR. No code yet; the plan is in the PR description. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



What and why
Pilots coming from Betaflight know the "Reorder motors" dialog in its Motors tab. First you confirm that the props are off. Then one motor runs at a time, and you click where it sits on the frame picture. At the end you either save or start over. We'd like to offer the same flow in INAV.
Not a replacement for the Mixer Wizard
This is not meant to compete with the existing Mixer Wizard, and it doesn't replace it. DzikuVx wrote the first version in 2020 and Ray Morris reworked it this year. It works, and we want to respect that work, so it stays exactly as it is.
What we want to add is an alternative for people who are used to how Betaflight does it. Some code could be shared, such as the motor positions per preset or applying the result by reordering the mixer rules. Where that's possible we'd move it into a shared module instead of copying it, without changing how the Mixer Wizard behaves.
Plan
MSP2_INAV_MOTOR_WIZARD_STARTfrom MOTOR WIZARD - move driving motor for motor wizard to FW inav#12247. The motor twitches in short bursts that the firmware times, and each sequence ends by itself after 3 s. The dialog repeats the command while the user is still looking for the motor.MSP2_INAV_MOTOR_WIZARD_STOP.Proposed place: the Outputs tab, next to the motor test, because that's the closest match to Betaflight's Motors tab. If you'd rather have it in the Mixer tab next to the Mixer Wizard, that works too.
Done so far
95db6d4:MotorOutputReorderingDialog.vue,useMotorOutputReordering.ts).MSP_SET_MOTORkeeps running after the Configurator connection is gone (see the comments on Mixer wizard: check each motor's spin direction after locating it #2798). This is why the dialog uses the timed sequence from #12247 instead ofMSP_SET_MOTOR.Depends on
next-10.1. error414 suggests INAV 11, because it changes MSP.maintenance-11.xfor now, to match the MSP change. Happy to retarget.🤖 Generated with Claude Code