GithubHelp home page GithubHelp logo

Comments (7)

bri3d avatar bri3d commented on June 7, 2024

This could be implemented as an additional feature on the air side in one of several ways:

  • Read the input voltage and send a DJI DUML message. This could even be implemented using a shell script and the dji_mb commands in /system/bin provided we find the correct message to send. Benefits: Shows up natively in DJI Glasses OSD (so warnings etc. work), should be pretty easy. No tampering with the system, can probably be done without even writing any native code. Drawbacks: Maybe the message we send will conflict with HDVT or get overridden? And need to find the message to send.
  • Send a fake MSP "reply" over the serial mux to the DJI HDVT service, populated with the voltage read from the input pins. This also should be pretty easy. Benefits: Same as previous method, plus only relies on things we know (MSP and the mux service) instead of researching things we don't (DUML message for voltage). Drawbacks: Requires the serial mux service to be installed and run, so a little "heavier weight" in terms of tampering with the system.
  • Send an MSP OSD with only a Voltage widget, populated by reading the voltage. Benefits: 100% in code we control. Drawbacks: Requires you to kill glasses on the goggles side and lose all DJI functionality to get only a voltage display. Heaviest weight in terms of tampering with the system.

I think approach #2 is the best - basically, extend the serial mux with a "fake flight controller" function which can reply to various MSP queries with data populated off of the Vista/AU. The existing DJI OSD functionalities can be used.

I'll take a look at this later, I had no idea the air side stuff even had voltage sensing so I'll play around.

from msp-osd.

bri3d avatar bri3d commented on June 7, 2024

This has been done for awhile now.

from msp-osd.

SCMicroMike avatar SCMicroMike commented on June 7, 2024

Nice!! I will look at the project and see if I can get a wing up and running to test it.

from msp-osd.

bri3d avatar bri3d commented on June 7, 2024

from msp-osd.

SCMicroMike avatar SCMicroMike commented on June 7, 2024

Copy that. Will be on the lookout. Thanks for addressing this. I have a couple questions but will ask on the discord to not clutter this.

from msp-osd.

driedger avatar driedger commented on June 7, 2024

Following this issue, and request that it gets reopened to ensure it doesnt fall through the cracks.
Would be great to modify the au_overlay_enabled option, or create a new option on the air unit side, to send temp and voltage without having a fc detected. As an AU option it could be enabled only as needed,
In the code it appears this only fires when we process_data_packet, which only happens while receiving msp data. @bri3d I suspect you already have a plan on how to implement this so I will stop digging though the code!
Thanks

from msp-osd.

bri3d avatar bri3d commented on June 7, 2024

0.6.11

from msp-osd.

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.