added approximate altitude measurement based on atmospheric pressure value from barometer