-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Further simplify timer usage flags. #9288
Conversation
A servo is a servo, no matter what the platform. A motor is a motor, no matter what the platform. Enum values changed, and compatibility macros added. Since the enum is not used in configuration, I don't expect regressions from this particular changes.
Needs updates to the configurator, since it checks for the old bits for motors/servos. |
@DzikuVx I fixed the conflict, but I don't have access to hardware to test until at least saturday. If you can just check that nothing outrageously wrong happened, it should be ready to merge. The conflict was just the the changes needed for he global override, which was removed. There are some targets where the motor for fixed wing was not on the first outputs that may see a different output mapping in fixed wing mode with this change though, but in most cases I checked, they seemed to be quad centric flight controllers, so hopefully, not a super common issue. |
It might be worth noting that four of those boards were set up that way because they need to be. DALRCF722DUAL These four boards will not be flyable in fixed with the default "motors first". The other three affected are: Some other boards will be okay either way. Others had definitions that were completely non-sensical and wouldn't work, with motors and servos on the same channel. |
You can get the same effect as INAV 6, by overriding one of the timers. AIKONF4 is another example.
With this change, it will allocate TIM8 as motor, and TIM3 as servo by default, for FW and MC. User would need to override TIM8 as servo, or TIM3 as motor to get INAV 6 FW allocation. If we set the timer with 2 outputs to motor I believe that would result in M1-M4 matching S1-S3 if you are setting up something with more than 2 motors. This is probably the less disruptive way to do it. I have another pr in the oven to go over all targets servo/motor allocations. We can probably move the discussion on how to address these there. |
#9309 will have the target updates |
A servo is a servo, no matter what the platform.
A motor is a motor, no matter what the platform.
Enum values changed, and compatibility macros added.
Since the enum is not used in configuration, I don't expect regressions from this particular change.