How to add touch functionality to a video streamed instrument?

Questions about deployment and use of Air Manager Instruments

Moderators: russ, Ralph

Post Reply
Message
Author
Mito173
Posts: 3
Joined: Sat Aug 17, 2024 7:27 pm

How to add touch functionality to a video streamed instrument?

#1 Post by Mito173 »

I am trying to build a little cockpit panel for my Thranda BN2A Islander currently. Since the plane does support the Reality XP GTN 750, my idea is to display this instrument on a separate screen.

I managed to extract the proper video stream and display the instrument on a little screen connected to a Raspberry Pi 5, using Air Player:
streamed_gtn_750.jpg
What is missing now is the touch function. I guess this will involve some more lines of programing, currently I only have the stream in my instrument:

Code: Select all

video_stream_id = video_stream_add("xpl/gauges[1]", 10, 10, 850, 1024, 1218, 10, 840, 1024)
But how do I do this? Is there any documentation/tutorial on this or can someone give me an example how to solve this? Dis not find anything when searching with Google, though.

Thanks in advance for your help!

Kind regards,
Michael

User avatar
Ralph
Posts: 8151
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: How to add touch functionality to a video streamed instrument?

#2 Post by Ralph »

There's no touch with streaming, it is just a video feed, so that will not work.

Mito173
Posts: 3
Joined: Sat Aug 17, 2024 7:27 pm

Re: How to add touch functionality to a video streamed instrument?

#3 Post by Mito173 »

Thanks for the quick response Ralph - so I guess the only way to get this instrument on a separate screen is to add an additional display to the X-Plane host, display the GTN 750 in a popup window and move this popup to the additional display?
No alternative solution using Air Player and the RasPi?
My idea was to use the GPIO pins to create real hardware buttons/knobs and build a modular cockpit where I could exchange instrument panels when switching to another airplane.

Post Reply