knicholson32 / stratux_ahrs

AHRS Display for the Raspberry pi powered Stratux software
MIT License
19 stars 8 forks source link

Adjust Baro Altitude to QNH #16

Closed DocTopi closed 4 years ago

DocTopi commented 5 years ago

Great work until now !!! Is there any possibility for adjusting Baro altitude to QNH ?

knicholson32 commented 5 years ago

That could certainly be done! Entering the altimeter setting into a pop-up would probably be the easiest solution. I'll have to think about how the user would summon the pop-up though- perhaps a long-press on the "Baro Altitude" button?

knicholson32 commented 5 years ago

I ended up moving the AHRS alignment and gyro calibration to a sub-menu, so it was logical to put the altimeter setting in there as well. The feature currently exists on the develop branch; I'll do some testing to see if the conversion equations seem right when I get a chance.

DocTopi commented 4 years ago

The sub-menu for adjusting baro altitude to QNH is working very well. But in european aviation mbar is used instead of inHg. Is it possible to install in configuration.js a selection between inHg and mbar for entering baro values in mbar?

knicholson32 commented 4 years ago

Should be very possible, just have to include a conversation for it. I'll reopen this and go from there. Thanks for the suggestion!

knicholson32 commented 4 years ago

All finished adding the ability to use different units for the altimeter setting. In configuration.js > altTape you can change the unit to be INHG, MB, or HPA:

/** ******************************* ALTITUDE ******************************* **/
var altTape = {
  units: UNITS.FEET,
  altimeter_setting_unit: UNITS.INHG, // <-- Unit can be INHG, MB, or HPA
  default_kollsman_inhg: 29.92,
  default_kollsman_millibar_hpa: 1013.2, 
  kollsman_memory_seconds: 18000
};
/** ******************************* ******** ******************************* **/

Let me know if you see any issues or have any suggestions. Thanks!

DocTopi commented 4 years ago

Hi Keenan,

please read my comment in the closed issue #20, and if you are in my opinion please open new issues, e.g.:

Thank you very much.

Kind regards

Franz

Dr. Franz Topitsch

Zahnarzt

Senselsweg 4

97645 Ostheim

Germany

E-mail: franz.topitsch@gmx.net

Von: Keenan Nicholson [mailto:notifications@github.com] Gesendet: Donnerstag, 2. Januar 2020 06:42 An: knicholson32/stratux_ahrs Cc: DocTopi; Author Betreff: Re: [knicholson32/stratux_ahrs] Adjust Baro Altitude to QNH (#16)

All finished adding the ability to use different units for the altimeter setting. In configuration.js > altTape you can change the unit to be INHG, MB, or HPA:

/ ** ALTITUDE / var altTape = { units: UNITS.FEET, altimeter_setting_unit: UNITS.INHG, // <-- Unit can be INHG, MB, or HPA default_kollsman_inhg: 29.92, default_kollsman_millibar_hpa: 1013.2, kollsman_memory_seconds: 18000 }; / * **** * **/

Let me know if you see any issues or have any suggestions. Thanks!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/knicholson32/stratux_ahrs/issues/16?email_source=notifications&email_token=AL62UUAS643JOHQNZCU3LZDQ3V5EJA5CNFSM4HMA5DA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH5WEEA#issuecomment-570122768 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AL62UUAB6MFCU6ZFERFMZPTQ3V5EJANCNFSM4HMA5DAQ . https://github.com/notifications/beacon/AL62UUDRN4MEIOSC2VNZ5DLQ3V5EJA5CNFSM4HMA5DA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH5WEEA.gif