Skip to content

Commit

Permalink
Update Altitude_calculation.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash2772 authored Jun 11, 2021
1 parent 6dff1f6 commit 2d2cee0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Altitude_calculation.ino
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Serial.begin(9600);

void loop() {
H = ((pow((P0/P), (1/5.257))-1)*(T + 273.15))/(0.0065);
//H = 44330*(1-pow((P/P0), (1/5.257))) Alternative that uses a constant temperature of 15C, barometric formula
Serial.println(H);
delay(1000);
}

0 comments on commit 2d2cee0

Please sign in to comment.