iNavFlight / inav

INAV: Navigation-enabled flight control software
https://inavflight.github.io
GNU General Public License v3.0
3.09k stars 1.46k forks source link

Feature request: BLHeli_32 ESC telemetry #2710

Closed Hazakins closed 4 years ago

Hazakins commented 6 years ago

BLHheli_32 ESC telemetry for OSD and logging.

Hanni1312 commented 5 years ago

I would also love to have this feature in INAV. I can test if needed.

I want it to shave of some grams of my setup to stay under 250 grams. It's a Nano Goblin and i used a Omnibus F4 V6 Nano instead of the full board and was hoping to utilize the telemetry feature on my KISS25A ESC to get mah consumtion. Thats basically all i want, the rest is nice to have.

Every gram counts , without FC and GPS is was at around 230-235 grams.

digitalentity commented 5 years ago

In progress 😄

Hanni1312 commented 5 years ago

Good to hear! I will keep an eye on this here and will be ready to test as soon as it is available.

putimir commented 5 years ago

Oh, gods and gurus! So, will this make the 2.2 release? 👍

Jetrell commented 5 years ago

Will this make the 2.2 release?

It would be nice, if it did :-)

edwardteach42 commented 5 years ago

Just wanted to offer to test when this is available.

putimir commented 5 years ago

Hey @digitalentity, (or anybody else), can you tell me what is this:

image

digitalentity commented 5 years ago

Ok, finally I'm making this my next item to work on :smile:

digitalentity commented 5 years ago

Catching up on bi-directional DSHOT/telemetry. This reports only eRPM value of the motor, still might be useful. Key comment describing this: https://github.com/betaflight/betaflight/pull/8554#issuecomment-512507625

Action items:

Jetrell commented 5 years ago

@digitalentity Thank you for taking the time to revisit this :+1:

From your post. It sounds like your aiming ESC telemetry towards bi-directional Dshot for PID control? From the read above, most of us are mainly interested in the Telemetry data. Even only for fixed wings. To simplify and lighten the builds.

 motor_count 
 motor_rpm
 esc temperature
 esc voltage 
 esc current 
 esc mAh consumption
digitalentity commented 5 years ago

@Jetrell then we can probably go with "classic" ESC sensor first - the one requiring an extra wire.

Jetrell commented 5 years ago

@digitalentity That sounds good to me. I'm not saying that RPM PID control isn't of use for quad performance.
But the ESC Telemetry data, is were most iNav users are at. Especially for fixed wing use. Thanks for your understanding.

digitalentity commented 5 years ago

Progress report.

Done:

TODO:

I've verified that ESC reports temperature and voltage correctly. We're getting close.

edwardteach42 commented 5 years ago

@digitalentity You're the man!!

Jetrell commented 5 years ago

@digitalentity Excellent stuff :+1: Can I ask out of interest and not being pushy.... Do you also intend to setup the Configurator with OSD preview elements, for their descriptive symbols and locations etc ? To me, that's the icing on the cake... i.e. knowing what the data relates too on the OSD, at a glance.

Many of us will use ESC telemetry for Fixed wings. So in theory... It should be possible to use OneShot or MultiShot instead of a Dshot and still use ESC telemetry, If we turn ON Auto Telemetry in Blheli_32 suite? Could you confirm this, as you are doing testing when writing the code.

Thanks again heaps

digitalentity commented 4 years ago

Closing this now.

@Jetrell, regarding ESC-telemetry with Auto Telemetry enabled - not yet possible, please open a separate issue for that so we can track it properly.

putimir commented 4 years ago

Alright! Getting ESC telemetry (RPM)! Kudos to the devs! Is there any written docu on what exactly is done, regarding telemetry? RPMs are also done perhaps? This will be great (I think) for pushing the high speed limits...

image

FelixvdDonk commented 4 years ago

Where exactly do we find the settings for esc telemetry in inav configurator? I can't find any CLI variables either

putimir commented 4 years ago

@FelixvdDonk: sorry for delay, maybe you can take a look @ this: https://www.youtube.com/watch?v=sPktdBh2Gcw

@digitalentity: may I ask 2 questions:

Thanks

putimir commented 4 years ago

@digitalentity: hello again, can you please check my previous question, thanks.

Also, is there some soft limit in the OSD RPM display, namely, I now have several different builds with esc telemetry configured (different motors, different esc's, different batt cell counts....) but all come to a fixed limit, "42k"....no matter what, it does not go higher, even though I can hear the motor still spooling up, from the point when it reaches 42k...

Thanks!

digitalentity commented 4 years ago

@putimir yep, confirmed & fix ready - see #5374 #5375