rzeldent / esp32-flightradar24-ttgo

Display real-time flights in an area using the ESP32 TTGO-Display module
44 stars 4 forks source link

It would be nice to see metric units #34

Closed kerby2000 closed 2 years ago

kerby2000 commented 2 years ago

Now display shows ft and kns In most of the Europe we use m and m/s

I quickly hacked

IotWebConf.cpp (317)
  tft.println(String((int)((float)flight_info.altitude*0.3048)) + " m  " + String((int)((float)flight_info.speed*0.514444)) + " m/s ");

But you probably can make configuration out of it.

rzeldent commented 2 years ago

Hi Kerby,

Nice suggestion! In the world of aviation Imperial units are standard. But in most of the world metric units are the standard. However, m/s is SI but changed it to km/h. So indeed, as you suggested I made an option for it... Enjoy!

Regards,

Rene

On Wed, Jun 22, 2022 at 12:46 AM kerby2000 @.***> wrote:

Now display shows ft and kns In most of the Europe we use m and m/s

I quickly hacked

IotWebConf.cpp (317) tft.println(String((int)((float)flight_info.altitude0.3048)) + " m " + String((int)((float)flight_info.speed0.514444)) + " m/s ");

But you probably can make configuration out of it.

— Reply to this email directly, view it on GitHub https://github.com/rzeldent/esp32-flightradar24-ttgo/issues/34, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB2ENB3TDKXAFNGNDMQSWLDVQJA3NANCNFSM5ZOE7ITA . You are receiving this because you are subscribed to this thread.Message ID: @.***>