Git Product home page Git Product logo

Comments (7)

MrD-RC avatar MrD-RC commented on July 30, 2024

In INAV MSP DisplayPort. The drawScreen function is called at 250Hz. Inside the drawScreen function, the rated is reduced to 62.5Hz. This is plenty fast enough.

image

osd_msp_displayport_fullframe_interval only determines how often the screen os cleared and all the data sent again. This doesn't affect how quickly the OSD is refreshed. That is still at 62.5Hz.

https://github.com/iNavFlight/inav/blob/master/docs/Settings.md#osd_msp_displayport_fullframe_interval

There is possibly something in the OSD creation slowing it down. But the refresh rate of MSP DisplayPort is not a problem.

The blackbox would give better results for tuning.

from inav.

b14ckyy avatar b14ckyy commented on July 30, 2024

Can you please send a screenshot of your OSD config?
Just had a quick chat with @MrD-RC about it as well as I can confirm that OSD elements that are not the AHI or scroll bars are updated at a slower pace.

it is possible that the VTX actively prioritizes elements. So that the necessary realtime elements like the AHI is updated at a very high rate but other elements with text and number updates are just sent every X intervals to preserve bandwidth.

As a result, the more elements you have on your screen that need refreshing, the slower these elements will update. So compare your BF and INAV OSD layouts and see if you have more stuff running on INAV.

from inav.

slackista avatar slackista commented on July 30, 2024

I assume drawScreen is properly implemented to do 62.5Hz. However at the end of the bytes you look at the slow refresh rate osd. I would love to look at the blackbox and see there amp draw but apparently INAV has no ESC Telemetry logging implementation #8966 when ESC gives serial telemetry.

Here is short video comparing osd refresh rate: same quad, same dji wtfos. For sure this is not 62.5Hz. Also on yt there are plenty of random INAV osd recordings where we can look.

inav_slow_compared_to_bf.mp4

from inav.

b14ckyy avatar b14ckyy commented on July 30, 2024

can you post a screenshot of both OSD setups please? Do you have more items enabled in INAV than in BF?

from inav.

MrD-RC avatar MrD-RC commented on July 30, 2024

Just because the amps are not updating as quickly. Doesn't mean that MSP DisplayPort is updating slowly. That updates at 62.5Hz. It could be that other areas get priority to update. If it has the same update time on analogue, it's not MSP.

from inav.

slackista avatar slackista commented on July 30, 2024

Pilot is looking at the OSD elements not at the drawScreen() in the debugger. This issue about slow update rate of the osd elements. If INAV devs are fine with that situation feel free to close.

from inav.

b14ckyy avatar b14ckyy commented on July 30, 2024

Overall I think there is nothing much we can do. The OSD is already updates as fast as we safely can and INAV uses already all the available bandwidth to not cause data errors. For tuning related issues it is much more helpful to use Blackbox logging.

If you really want in flight monitoring then the fast updates of BF are also not very helpful as you can easily miss short spikes. A much better option would be to use programming. Something like this:

image

This logic will store any peak current (with a measurement update rate of 50Hz) in GVAR 0 and shows any spike of the last 1000ms (line 3). This will work even better than any high update rate OSD element. Just add GVAR 0 as an OSD element next to your current sensor to have a comparison. Just keep in mind that GVAR has no decimals so 15A wills how as a value of 1500.

Something you can't do with BF.

from inav.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.