Skip to content

Commit 717ba95

Browse files
author
BasicAirData
committed
Ex
1 parent 11da80a commit 717ba95

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Software/Arduino/Libraries/AirDC/Examples/DifferentialPressureSensor/DifferentialPressureSensor.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
#define DPSENSOR 3 //Selects the differential pressure Hardware sensor see AirSensor.cpp for details on Hookup
1111
#define PSENSOR 1 //Selects the static pressure Hardware sensor see AirSensor.cpp for details on Hookup
12-
#define DEBUG 1 //
1312

1413
#if DPSENSOR==1
1514
#include <Wire.h>
@@ -60,8 +59,9 @@ void loop() {
6059
AirDataComputer.TAS(1);// Calculates the IAS, Algorithm 1
6160
AirDataComputer.Mach(1);// Calculates the Mach number, Algorithm 1
6261
AirDataComputer.OAT(1);// Calculates the Outside Air Temperature, Algorithm 1
62+
AirDataComputer.ISAAltitude(1);// Calculates the ISA Altitude
6363
//Measurment corrections and Auxiliary data
64-
AirDataComputer.PitotCorrection(1);// Calculates the ISA altitude from static pressure, Algorithm 1
64+
AirDataComputer.PitotCorrection(1);// Calculates the corrected Airspeed, Algorithm 1
6565
AirDataComputer.Viscosity(1);// Calculates the dynamic viscosity, Algorithm 1
6666
AirDataComputer.Red(1);// Calculates the ISA altitude from static pressure, Algorithm 1
6767
delay(1000); //loop delay
@@ -89,9 +89,9 @@ void loop() {
8989
Serial.println(AirDataComputer._uT); //Outside Temperature, Static Temperature uncertainty
9090
Serial.println(AirDataComputer._RH); //Relative Humidity
9191
Serial.println(AirDataComputer._uRH); //Relative Humidity Uncertainty
92-
Serial.println(AirDataComputer._h); //Altitude
92+
Serial.println(AirDataComputer._h,4); //Altitude
9393
Serial.println(AirDataComputer._uh); //Altitude Uncertainty
9494
Serial.println(AirDataComputer._TASPCorrected); //True Airspeed Corrected for probe position
95-
Serial.println(AirDataComputer._mu); //Viscosity mPas
95+
Serial.println(AirDataComputer._mu,10); //Viscosity Pas
9696
Serial.println(AirDataComputer._Re); //Reynolds
9797
}

0 commit comments

Comments
 (0)