makerplane / pyEfis

Electronic Flight Information System in Python
GNU General Public License v2.0
58 stars 31 forks source link

proper handling of units for BARO display #108

Closed qubolino closed 2 years ago

qubolino commented 2 years ago

i'd like to have BARO displayed in hPa but i don't want to change the db field unit nor add a new one since that would be redundant. what is the proper way to handle different units in pyEfis pls. ideally i'd like to comply to what's already beeen done

birkelbach commented 2 years ago

We have alternate units functionality in some of the engine instruments. The way that it's done there IIRC is there is an alternate unit formula and they react to a signal to change back and forth.