MSP protocol support

@yaapu “Sending unknown message” is some v4.3.0 bug which still needs someone to investigate it.

It comes from ArduPilot/ardupilot/tree/master/libraries/GCS_MAVLink/GCS_Common.cpp:5764

    default:
        // try_send_message must always at some stage return true for
        // a message, or we will attempt to infinitely retry the
        // message as part of send_message.
        // This message will be sent out at the same rate as the
        // unknown message, so should be safe.
        gcs().send_text(MAV_SEVERITY_DEBUG, "Sending unknown message (%u)", id);

Looks like @peterbarker wrote this default block 5yrs ago. The behavior is odd. Why not send an empty string if something “must” be sent?

What also could be happening is one of the other switch cases would usually be triggered, but in v4.3.0 for some reason, it executes the default block.

2 Likes

good, now that you proved my point that you can look for answers by looking at the code yourself we can perhaps get back on topic :stuck_out_tongue_winking_eye:

…but you’re right, I did look at the code myself as well and it’s not easy to infer why sending a particular message failed, about the empt string you might be right or not, perhaps the code dumps all attempts to send a packet without payload

edit: there’s an open issue on github

There has been an attempt at adding power and energy to the onboard OSD, I’ve found this “closed” (unmerged) PR

Efficiency was added with this PR

I managed to go OT in my own thread :slight_smile:

Waoo lot of activity here :slight_smile: I install the last HD font and it’s better than before.

I will be happy to understand too why this ‘sending unknow message’ is displayed. It’s like an log level (DEBUG) that must not be there in the custom firmware compilation ?

Also super interested in efficiency display on DJI MSP OSD.

@David82 ’sending unknonwn message’ seems fixed in 4.4.0 custom build Squelch warning about sending RPM mavlink message if RPM not compiled in by peterbarker · Pull Request #21828 · ArduPilot/ardupilot · GitHub

1 Like

There is an efficiency metric already for the MSP displayport OSD. OSD1_EFF_EN. For some reason, it measures mAh/km (or mAh/mi) though, instead of the clearly superior wh/km. Of course it is super simple to do (amps * pack voltage) / km/h in the code, but for some reason, they implemented amps / km/h instead :face_with_raised_eyebrow:. Better than nothing though :upside_down_face:

Hi, is there any way to move the HD OSD to the left and increase Y to 20 and x to about 50?
Currently OSD offsets don’t affect anything in HD mode. Running last night’s 4.4dev

I suppose the answer about mAh/km(or mi) was ‘we always done that like this and also this was a standard choice in Eagle Tree system or other ‘classic’ old Autopilot.’
Perhaps there is a way to push a merge request if we find time to do that ? But prior, it will be nice to know if developper had a good reason to choose this and they are agree to change this. I don’t like the idea to fork Ardupilot for such a reason.

No more ‘Sending unknow message’ with ArduPlane V4.4.0dev (83efcc00). This is a great news. Fun fact I had a custom build launched this morning (12h ago) on custom.ardupilot. that is still in pending. But I discover that ‘all options’ in mission planner firmware page let to choose the version I want :slight_smile: Nice

1 Like

uploaded Ye He we are cooking with gas thank you developers

1 Like

Thanks. Looks like I’ll just use X Y coordinates for now. MP beta updates haven’t addressed this issue. It’s been an issue forever so maybe I’ll submit a ticket to Michael Oborne.

Who can help me?
I can’t find where the problem is from the code.

Paul Kaup with STEM+C.
I am interested in joining this MSP protocol group. I am using the Matek F405wmn Flight controller with Arduplane and Missionplanner. Right now I am using analog on my rig, but would like to move over to DJI. Thank you…
The Benett webpage … https://stemplusc.org/the-benett/

Hi,

does anyone have WTFOS running in HD and can share the OSD parameters?

When a parameter is set to the 0,0 position it is not in the top left of the display. Is that correct?

https://ardupilot.org/plane/docs/common-msp-osd-overview-4.2.html?highlight=wtf#displayport-osd

1 Like

If anyone can help out. Thanks

@yaapu I got the Walksnail working on my goggles, but unable to get the OSD text to spread out. It’s more like On-Your-Face OSD. I tried both 4:3 and 16:9 aspect ratio. I can only move the text to the right side but that is all.
Defeats the definition of Canvas mode.
Any idea how I can move the text to the edges of the screen?

At Walksnail VRX Menu choose Settings → Display


→ OSD-Position

and with the Cursor you can move the left upper corner of the OSD-Area

Don’t forget to set OSD1_TXT_RES,1 (Textresolution 50 x 18)

Rolf

2 Likes

Thanks Rolf, works like a charm. @Michael_Oborne I had to move my right edge values to X=45 which makes them disappear from the MP OSD screen. Perhaps in the future MP OSD setup screen should be standardized for 16:9 and 4:3 aspect ratio.
Just a suggestion.

1 Like