stratux icon indicating copy to clipboard operation
stratux copied to clipboard

Standalone AHARS web page output suitable for HUD

Open N129BZ opened this issue 5 years ago • 7 comments

  1. Stratux version:

  2. Stratux config:

    SDR

    • [ ] single
    • [ ] dual

    GPS

    • [ ] yes
    • [ ] no type:

    AHRS

    • [ ] yes
    • [ ] no

    power source:

    usb cable:

  3. EFB app and version: (e.g., WingX Pro7 8.6.2)

    EFB platform: (e.g., iOS 9.2)

    EFB hardware: (e.g., iPad Mini 2)

  4. Description of your issue:

Would it be possible to add a web page with your AHARS in a non-bordered and no-title page, suitable for use on a HUD? Your AHARS graphics are excellently done, very smooth. I have attached an image of green-on-black of your AHARS. If the user could select the resolution that would be fantastic. The HUD obviously sees black as clear...

Thanks for a great product Brian Manlove

image

N129BZ avatar Feb 24 '19 19:02 N129BZ

@westphae Would this be tough to make?

Helno avatar Feb 24 '19 21:02 Helno

I got that png by replacing the colors in stratux's css file for the AHARS display. I can then see the page on a kivic HUD - but it's the whole page and thus too small. If it could be shown by itself, maybe adding a vertical airspeed tape on the left and a vertical altitude tape on the right, it would rival some REALLY EXPENSIVE stuff... just a thought.

I'm not sure how stratux is generating the markup for drawing their AHARS but it's extremely smooth. Maybe someone could point out the code for that?

N129BZ avatar Feb 24 '19 22:02 N129BZ

This is where I would look.

https://github.com/cyoung/stratux/blob/master/web/plates/js/ahrs.js

Helno avatar Feb 24 '19 22:02 Helno

For reference, this is a good size for the Kivic - 780 x 455. Thanks for the reference to that ahars.js.

hud

N129BZ avatar Feb 25 '19 01:02 N129BZ

I have now almost completed a hud web page that is using SVG graphics with CSS and JQuery which I can run in the Raspberry Pi using the Chromium browser in kiosk mode. That gives me a full screen without borders, menu bars, etc. The solid white bar in the speed scroller on the left has the v-speed color bands for my airplane. The altitude scroller goes up to 10600 feet.

One question I have is - How hard of a hit is it on the Stratux for me to be requesting the getSituation url at a rate of 20 hz? That gives me a pretty smooth screen output. I left it running overnight and it appeared to work just fine. It makes a lot more sense to me to not have to deal with heartbeats, keepalives, etc., in this situation. My next step is to see if I can get the assets on the Stratux itself, in which case I can just run the composite video cable right from there.

Screen shot and screen video in zip attached. Comments welcome.

HudWebPage

hud_html_in_kiosk.zip

N129BZ avatar Mar 11 '19 03:03 N129BZ

From memory that sounds about the polling I used fro Kwik EFIS.

http://members.iinet.net.au/~ninelima/efis/index.html

https://gitlab.com/ninelima/kwikEFIS

------ Original Message ------ From: "Brian A Manlove" [email protected] To: "cyoung/stratux" [email protected] Cc: "Subscribed" [email protected] Sent: 2019-03-11 11:45:17 Subject: Re: [cyoung/stratux] Standalone AHARS web page output suitable for HUD (#767)

I have now almost completed a hud web page that is using SVG graphics with CSS and JQuery which I can run in the Raspberry Pi using the Chromium browser in kiosk mode. That gives me a full screen without borders, menu bars, etc.

One question I have is - How hard of a hit is it on the Stratux for me to be POSTing to the getSituation url at a rate of 20 hz? That gives me a pretty smooth screen output. I left it running overnight and it appeared to work just fine. It makes a lot more sense to me to not have to deal with heartbeats, keepalives, etc., in this situation. My next step is to see if I can get the assets on the Stratux itself, in which case I can just run the composite video cable right from there.

Screen shot attached. Comments welcome. HudWebPage https://user-images.githubusercontent.com/47579080/54099230-89555a00-438e-11e9-9528-0b95dafde8ed.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cyoung/stratux/issues/767#issuecomment-471394887, or mute the thread https://github.com/notifications/unsubscribe-auth/ARGTAToK6rZ_G6pN03JS_93uDkAdWxMsks5vVdFNgaJpZM4bOuP6.

ninelima avatar Mar 11 '19 07:03 ninelima

I have a working prototype of a Stratux directly feeding a Kivic HUD, that I have uploaded to https://github.com/N129BZ/stratux-webHud. I installed the most minimal footprint possible on the Stratux RPi, including the Openbox window manager, and the Chromium browser. I added a subdirectory at /var/www/hud/ and put the content html, js, img, css directories and files there.

The window manager is loaded and Chromium is launched in Kiosk mode on the RPi to the URL of http://localhost/hud/hud.html, the Kivic hud unit plugs directly into the 3.5mm TRSS composite video jack on the RPi.

This reduces the overall footprint of adding a HUD display to the package, because it only requires the video cable and the Kivic HUD. Some of the other adaptations require a 2nd RPi, which means more cables, more USB ports, etc. This keeps additional stuff to an absolute minimum. (P.S. - the Kivic runs on any voltage between 4.5 and 17v and comes with an adapter cable for direct wiring to the ship 12v power.)

Feedback appreciated.

The uploaded sources at https://github.com/N129BZ/stratux-webHud do not include any automated build source for adding the openbox window manager or Chromium.

N129BZ avatar Mar 24 '19 02:03 N129BZ