Skip to content

Allow motor test mode when reversible motors (3D) enabled#2595

Open
sensei-hacker wants to merge 1 commit intoiNavFlight:maintenance-9.xfrom
sensei-hacker:fix-3d-motor-testing
Open

Allow motor test mode when reversible motors (3D) enabled#2595
sensei-hacker wants to merge 1 commit intoiNavFlight:maintenance-9.xfrom
sensei-hacker:fix-3d-motor-testing

Conversation

@sensei-hacker
Copy link
Member

@sensei-hacker sensei-hacker commented Mar 19, 2026

Needs firmware support for reverse to work

Summary

Fixes the Outputs tab motor test checkbox being disabled when the REVERSIBLE_MOTORS feature (3D mode / bidirectional ESCs) is enabled.

Problem

feature3DSupported was initialized to false and never set to true anywhere. This caused the guard if (self.feature3DEnabled && !self.feature3DSupported) to always block test mode for 3D users. The variable was a leftover from a removed API version check (commit ef831a3 from 2016).

Additionally, a typo (FC.EVERSIBLE_MOTORS instead of FC.REVERSIBLE_MOTORS) in the neutral value sanity check would have caused a runtime TypeError if the code path had been reachable.

Changes

  • Removed feature3DSupported variable and the guard that blocked test mode
  • Simplified feature3DEnabled && feature3DSupported checks to just feature3DEnabled
  • Fixed typo FC.EVERSIBLE_MOTORSFC.REVERSIBLE_MOTORS
  • Improved comment on neutral value sanity check bounds
  • Slider initialize to center when reversible mode is on

Testing

  • Verified motor test checkbox enables correctly with REVERSIBLE_MOTORS feature active
  • Sliders initialize to neutral point (1500) in 3D mode
  • Motor values display raw PWM in 3D mode
  • Normal (non-3D) motor testing unaffected

feature3DSupported was always false and never set to true, preventing
motor testing for users with reversible ESCs. Remove the dead variable
and let 3D motor testing work. Also fix typo FC.EVERSIBLE_MOTORS that
would have caused a runtime error on the neutral sanity check.
@sonarqubecloud
Copy link

@sensei-hacker sensei-hacker changed the title Fix motor test mode blocked when reversible motors (3D) enabled Allow motor test mode when reversible motors (3D) enabled Mar 19, 2026
@Pikkuboo
Copy link

tested on a speedybee f7 v3 fc and motor testing now works when reversible motor is on, but only forwards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants