-
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
DSHOT #3879
DSHOT #3879
Conversation
6ba7f55
to
51dff7c
Compare
a164556
to
4555fe9
Compare
Just for kicks (quiet here), I built this for MATEKF405,
Should it ??? Should I be so impressed ? btw --- this a tricopter, another well known firmware had a lot of problems with DSHOT and servos (which is one reason why my non-navigation mini-tri flys iNav). |
@stronnag so DSHOT works on your precious Tri? Congratulations to all of us then! And many thanks for testing. |
This is small, less precious tri. But for me it's the definitive DSHOT test based on βF experience (which had a lot of problems with servos). Impressed, I'll try and fly it tomorrow. |
@stronnag you know I'm most of the time in for backwards compatibility, that's why DSHOT will only be enabled for the targets where it would be able to coexist with servos. Code still needs a lot of improvements - currently throttle mapping to DSHOT values is rather hacky, the whole mixer should be refactored to do it properly. But still - I'm so much happy that it worked for you. I don't have any DSHOT-capable ESCs yet (a few on the way) so your's test is actually the first test with real ESCs 😄 |
A friend of mine has just tested this on the omnibusf4v3 target and it looks good. I just added the USE_DSHOT to the target file but this results in only being able to use dshot from the cli, is this correct? Does the configurator need updating? |
Yes, extensions to Configurator are required so dshot is supported in GUI.
If you are familiar with JS and node.js you are welcome to have a crack at
it.
…On Sun, Sep 30, 2018, 10:35 TwoToneEddy ***@***.***> wrote:
A friend of mine has just tested this on the omnibusf4v3 target and it
looks good. I just added the USE_DSHOT to the target file but this results
in only being able to use dshot from the cli, is this correct? Does the
configurator need updating?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#3879 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AKi_mz3zrGc2ZDmhuqUJIuXtth1_tLpEks5ugIJYgaJpZM4W1PZD>
.
|
Just a note, the guy who tested dshot had the motors spinning fine, hence my initial conclusion that it looks good but after flying he found the wing he was using started rolling out of control. Not sure if it's related, feel bad as he's destroyed his goblin! Could be something else that caused it. Once it's fixed I'll see if he can get a black box log. Has anyone actually flown with this branch yet? |
I flew this on my small (semi-precious) tricopter today.
Flew just fine, no problems at all. Identical performance to the same machine on MULTISHOT :) This branch plus the janitorial "add |
"Identical"? How can that be? It's digital! It must be better! 😄 |
Identical within the limits of my flying ability. It's not a high bar. I'm sure the experts will correct the heretical errors of my ways. OK, I was being deliberately provocative ... but I can't tell any difference. |
I think technically, MULTISHOT is faster than DSHOT600 more than 50% of the time, but it's digital, so the math must be wrong. |
I think practically. Quad takes >10ms to even start responding to roll/pitch command (that's measured on a live quad). Microseconds of ESC command delay are way beyond measurement error here. The only benefit is zero distortion of ESC command, but it comes at a price of higher requirements to wiring quality. I would like to see received PER (packet error rate) calculated by ESC firmware and reported via telemetry. This way DSHOT reliability would be measurable. |
In any case... I do have a quad with ESCs that support DSHOT which I will also test. I'll do everything in my power to contain my enthusiasm. I hope it will be more successful than when I tested Oneshot 125 and one ESC stuck the motor at 100%. BTW, a quad doesn't like it when one motor goes from 30% to sticking at 100%. It was spectacular from 100 feet, spun the battery clean off. |
I didn't add the string.h to pwm_output.c. What are the implications of that? It built fine. |
Just compiler warnings, I expect. |
My friend who test dshot also said "Just tested it, it works no problem. The accuracy of low throttle on my nano goblin is much improved as it is on quads with dshot." That was before it went into a strange infinite roll |
@TwoToneEddy Are you saying the INAV build with DSHOT enabled caused an infinite roll? If so, that's exactly what happened to me when testing Oneshot 125 (motor stuck at 100%). |
@teckel12 I'm not sure as i didn't do the tests personally, it was a friend of mine but from what they tell me yes. It's strange though as the motor (on a wing) responded fine in the motors tab which sounds like the protocol was working fine. Apparently the flight controller is also dead now (no lights). Perhaps the flight controller was on the way out? Don't know |
I'm a bit less convinced about this new timer / dma stuff. I flew 'cecil the deadcat', Omnibus F3 with MULTISHOT on it today. On the second lipo, blackbox gave up 1.5 min in to a 6.5 min flight which ended in a violent roll of death from 15m up, effectively writing off the machine. Frame broken beyond even the epoxy doctor's best magic, one motor and three props destroyed. Still, this is the first aircraft I've totalled in nearly three years of extreme iNav testing, c'est la vie. RIP cecil, you really are a dead cat now. |
@stronnag SD-card based? Unplugged SD-card in-flight might have resulted in an FC freeze - known issue, no fix at the moment 😞 |
yes, it was SDcard based. Sh*t happens, I know that better than most. |
Yep, that SD-card issue definitely needs fixing. SD-card reliability is the main reason I prefer dataflash FCs |
Indeed, I really liked the QVF4 .... apart from the 2Mb flash. |
It was a Transcend Ultimate (can't read the writing on it any more) that I've been using since we got SD logging. Anyway, as I've recently become addicted to self built foamie parkjets, the remaining motors /ESCs will not be lacking a new home. |
Wow, that's a few steps up from very serious given the reliability of SDcards :( |
Flew DSHOT (300) yesterday, was perfect, no issue, no desync. |
Ok, I think this is save to merge. Further improvements would be done in separate PRs |
Quick question, is d-shot telemetry included in this? |
@Hanni1312 No, just communicating to the ESCs via the DSHOT protocol, not telemetry. |
I compiled 2.1 development last night to get my OSD working which it does no problem on my OMNIBUSF7NXT. I just tried to enable DSHOT from here and the FC stops connecting to USB, just comes up as a malfunctioning USB device and I don't get the motor arming beeps. And yes the 4in1 esc is blheli32, dshot is fine under betaflight.
|
Is there any way to adjust the idle (dshot_idle_value) like in Betaflight? My motor spins too fast at minimum throttle. edit: ok digitalIdleOffsetValue in mixer.c did the trick. |
Hi All, |
Blocked by #3833