@anbello are you able to try with this PR again on your setup? I found quite a few issues with the way we were cancelling and synchronizing pulses. Pretty sure its right now but would be good to know I haven’t broken anything.
EDIT: actually I think there may be a problem - I am investigating
Hi Andy,
Could you please give a look on mropixracer pro bdshot latest build. It seems it has a broken baro driver. I would like to test your latest changes, though couldn’t compile for this little board for some annoying reason (probably my fault).
Hi @Dimitris_Stefanakis my changes don’t affect the baro - I suspect something else is going on. I am unable to test a pixracer pro - hopefully I might get one.
Ok interesting. I did find one overflow issue with LEDs which I have now fixed. I’ll see if I can reproduce your issue.
EDIT: Very interesting - I have reproduced this, but the signal looks perfectly fine and the ESC is responding fine also - so I am not sure what is going on. It’s kind of bizarre as well because in this config the pulse goes out in pairs of channels, so you would expect two motors not working or none - 3 is very strange.
I did a little test flight with MOT_PWM_TYPE = 6 and it seems all OK.
But I would like to know if it is normal that FTN.NDn sometimes goes to 3, as shown here:
I found it, what make the difference is INS_HNTCH_MODE, in your file is 1 in my is 3.
If I set it to 1 also MOT_PWM_TYPE = 5 is OK but in this way I have not harmonic notch based on ESC telemetry.
So when we set ESC telemetry via bdshot (SERVO_BLH_AUTO=1 SERVO_BLH_BDMASK=15) AND use this for harmonic notch (INS_HNTCH_MODE=3) we have DShot300 not working (only 3 motors).
This is true both with and without your PR, but with your PR all the other DShot* works good and this is not true without the PR.
I am sorry but I haven’t enough knowledge to understand why.