Weather Board 2 / Show 2 patch for altitude adjustment

Moderators: mdrjr, odroid

Weather Board 2 / Show 2 patch for altitude adjustment

Unread postby romand » Tue Feb 21, 2017 2:27 pm

To give more accurate altitude reading you have to be able to set the sea level pressure for your area. The attached patch to weather_board.ino
displays this value and allows you to adjust it with the 3 buttons. Button 0 increases it, Button 2 decreases it and the value of the change is set to
0.01 hPa if button 1 is released and 1.0 hPa if button 1 is pressed. By setting the pressure a sea level you get a much more accurate reading for
your altitude.

Patch is for weatherboard 2 only.

Romand
Attachments
wb_patch.txt
patch to weather_board.ino for adjustable sea level pressure
(1.9 KiB) Downloaded 89 times
romand
 
Posts: 3
Joined: Tue Feb 21, 2017 10:07 am
languages_spoken: english
ODROIDs: C2 Show Smartpower2

Re: Weather Board 2 / Show 2 patch for altitude adjustment

Unread postby odroid » Tue Feb 21, 2017 5:32 pm

It looks very useful. Thanks.
We will test it and merge into our github source code.
User avatar
odroid
Site Admin
 
Posts: 25057
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Weather Board 2 / Show 2 patch for altitude adjustment

Unread postby romand » Sat Sep 02, 2017 8:02 am

Improved patch for weather board 2 / show 2

This patch improves the previous patch as it does not change the display brightness and provides a new altitude mode.

To enable the modification of sea level pressure buttons 0 and 1 need to be depressed together. This puts it into configuration mode.
In this more the sea level pressure can be modified as in the previous patch. Button 0 increases it and button 2 decreases it. Button 1
toggles the value of the change between 0.01 hPa and 1.0 hPa. Pressing buttons 0 and 1 again takes you out of configuration mode.

There is a new altitude mode is toggled by pressing buttons 0 and 2 together. The new mode is altitude delta which displays the
change in altitude from the base which is set when the buttons are pressed. In this mode the altitude displayed is the change in altitude
not the absolute altitude from sea level. This mode can be useful when you want to know your change in altitude rather then the absolute
altitude.

I hope that people find this useful. I have.

Romand
Attachments
wb1.43_patch.txt
This patch is applied to version 1.41 of the software NOT 1.42
(5.14 KiB) Downloaded 17 times
romand
 
Posts: 3
Joined: Tue Feb 21, 2017 10:07 am
languages_spoken: english
ODROIDs: C2 Show Smartpower2

Re: Weather Board 2 / Show 2 patch for altitude adjustment

Unread postby odroid » Sat Sep 02, 2017 8:44 am

Really appreciate the updated patch.
Nice idea using the combined buttons pressing. :o
User avatar
odroid
Site Admin
 
Posts: 25057
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID


Return to Weather Board

Who is online

Users browsing this forum: No registered users and 1 guest