You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use SKYSTARSF405HD4 FC and want to use 4 motors(S1-S4) and 2 servos (S5-S6) But its badly assigned to Timers like
S1 Timer4
S2 Timer4
S3 Timer3
S4 Timer2
S5 Timer3
S6 Timer3
And I can't use it like I want cause Timer 3 is already used by the Motor output
Desired Behavior
I asking for help to change the Timer in FC target, but I don't understand how to do it right, cause channels for alternative timers have an N index
Suggested Solution
After googling I have seen some similar solutions, but I have Inav 7.1.1 and it seems the syntax of the Timer definition little bit other
I suggest changing Timer 3 to Timer 8 or Timer 1 with the N index
I write it in target.c, Timer 8 appears in Inav for S5 S6 S7(from where?) and servos don't working. Maybe I am wrong in syntax
Thank you for your answer!
According to the datasheet, at those pins available Timer 1 and Timer 8 with index N, I've seen that it is possible to use them with target tweaks like here: #3921
I tested it, seems to DSHOT working correct, but servo outs 5-6 not show any life signs
Also, Timer 8 is set to LED output, maybe it's playing some role here
Maybe, I make incorrect changes in the target.c, i cant find syntaxis example or reference for check it
Current Behavior
I use SKYSTARSF405HD4 FC and want to use 4 motors(S1-S4) and 2 servos (S5-S6) But its badly assigned to Timers like
S1 Timer4
S2 Timer4
S3 Timer3
S4 Timer2
S5 Timer3
S6 Timer3
And I can't use it like I want cause Timer 3 is already used by the Motor output
Desired Behavior
I asking for help to change the Timer in FC target, but I don't understand how to do it right, cause channels for alternative timers have an N index
Suggested Solution
After googling I have seen some similar solutions, but I have Inav 7.1.1 and it seems the syntax of the Timer definition little bit other
I suggest changing Timer 3 to Timer 8 or Timer 1 with the N index
I write it in target.c, Timer 8 appears in Inav for S5 S6 S7(from where?) and servos don't working. Maybe I am wrong in syntax
#if defined(SKYSTARSF405HD2)
DEF_TIM(TIM8, CH2, PB0, TIMER_OUTPUT_N_CHANNEL | TIM_USE_OUTPUT_AUTO , 0, 0),
DEF_TIM(TIM8, CH3, PB1, TIMER_OUTPUT_N_CHANNEL | TIM_USE_OUTPUT_AUTO , 0, 0),
#endif
UPD. I tested it with an oscilloscope and there is no PWM output on the S5 S6 pads
Who does this impact? Who is this for?
All who use that FC and want wider functional
Additional context
Similar request, but here used for 6 motors, I need 4 motors and 2 servos #9415
The text was updated successfully, but these errors were encountered: