-
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
MATEKF405TE no DSHOT on S3 (CH3N) #8089
Comments
What we're trying to establish with this issue is..
The workaround (use multishot or oneshot) works if you have an ESC that supports those protocols, but it doesn't address these questions. @MATEKSYS, you had previously suggested..
Given that DSHOT works in BF and Ardupilot, this suggests an issue, or limitation with INAV's implementation of DMA in particular with TIM{1,8}_CH3N . Could we focus there please? |
@bkleiner is this something that you understand? |
BEEROTORF4 uses the same timer assignment on PB1 for M2, so it might be interesting to look at. |
I have the same issue on Matek F405-HDTE (MATEKF405TE) and with the ESC Mamba Master F55_96K. For check i try to flash BF and works property the ESC3. |
@DzikuVx any ideas? assignees? due dates? |
I have an suggestion to bypass this problem: In the target.c remove TIM_USE_MC_MOTOR in the S3. With that when inav assign the motors ignores S3 and we can use S4 for motor 3 and S5 for motor 4. |
is this ever gonna be fixed, or do i need to switch FC brand? |
@m0nk1111 I'm using this FC with my changes without problem. Please note the new wiring scheme; the Motor 3 is in the S4 and Motor 4 is in the S5. I attach the firmware of the versions 5.1.0 and the actual Master (i don't test this last one) |
@gokuhs i appreciate your help. but i dont want to rewire S5 on the FC to S4 on my esc4in1 everytime i want to use INAV. also im using the jsh connector. Mateksys said on the product page, that S3, S5 and S7 have the same problem, so how would this work? |
@m0nk1111 I know that it is not an ideal solution, but this bug has been open for a long time, and for me it was either to do something like that or to keep it in the drawer. I also use the JST, but of course I have to use both, and in the second only with one wire; the one from the S5. I know that on the Matek page they say that but for now it has worked well for me. And if you switch to Betaflight simply from the CLI you can forward ports without rewiring. I insist, it is not the most ideal, but at least we can put it to use. |
thank you for doing this, ill give it a try in the morning. shameful matek hasnt fixed this or offered better workarounds like yours. |
didn't work for me, bluejay showing just 3 esc's. tried both too, 6.0 is way bugged. if i add another motor i see it, but S5 still seems to be S5, think im just gonna load BF on it and give up. boards garbage anyway, gyro noise its unfixable. thanks for nothing Matek. |
Is strange... i'm flying with this firmware right now... Do you clean the configuration? And another thing... which is the "gyro noise"? Because flying, it flies, but it's true that I have a lot of vibrations that I can't remove by adjusting the pids... |
clean, full erase? i full erased both and downloaded 6.0 just to test, just acted like it always did. i reuploaded diff though. |
My setup is: |
I switched to multishot and voltage sensor becomes to normal values. So, I decided that's a part of the DShot issue. |
Any news on this issue? At this point I am thinking about submitting an alternate target that drops the problem channel |
I always used INAV, but due to this issue because I can't use turtle mode without DSHOT, I migrated to Betaflight. With the new BF update, I was so excited to have an RTH as good as INAV, but I can't get a compass calibrated. So, I just tried to use INAV again, and DSHOT worked just fine! I'm using Configurator 7.1 and Firmware 7.1. I'm literally configuring the quad right now, so I can't say how it will be in the field. |
Current Behavior
Although #7924 adds support for support for MATEKF405TE target (from release_5.0.0), DSHOT does not work on S3 output (PB15).
As @MATEKSYS suggests in #7656 and on Matek's FC tips, there is thought to be an INAV bug preventing this..
Whilst the work-around proposed in #7656 and #7781 (use Multishot) does work, it makes for a clunky migration path from BF and has the obvious limitation of not being able to use RPM filtering. Furthermore, given EOL for other Matek mini FC's, I suspect this will be a common target for smaller quadcopter builds.
Steps to Reproduce
Expected behavior
DSHOT works on at least S1-S4 when using MATEKF405TE target for release >= 5.0.0.
Suggested solution(s)
I've exhausted my skills, so perhaps someone could confirm that this is a bug, or a limitation of INAV DMA implementation, or a true limitation of MATEKF405TE?
Additional context
Related issues
5.0.0-RC2 dump
In BF, S3 uses AF1 (TIM1_CH3N) and DMA2,6,6
In INAV, S3 uses AF1 (TIM1_CH3N) and DMA2,6,0
Neither of those combinations work in INAV.
I've also tried compiling 5.0.0-RC2 with S3 (PB15) mapped to both AF1 (TIM1_CH3N) and AF3 (TIM8_CH3N), with various DMA request mapping, but I'm unable to get S3 (PB15) working with CH3N.
The text was updated successfully, but these errors were encountered: