|
9 | 9 |
|
10 | 10 | #define DPSENSOR 3 //Selects the differential pressure Hardware sensor see AirSensor.cpp for details on Hookup |
11 | 11 | #define PSENSOR 1 //Selects the static pressure Hardware sensor see AirSensor.cpp for details on Hookup |
12 | | -#define DEBUG 1 // |
13 | 12 |
|
14 | 13 | #if DPSENSOR==1 |
15 | 14 | #include <Wire.h> |
@@ -60,8 +59,9 @@ void loop() { |
60 | 59 | AirDataComputer.TAS(1);// Calculates the IAS, Algorithm 1 |
61 | 60 | AirDataComputer.Mach(1);// Calculates the Mach number, Algorithm 1 |
62 | 61 | AirDataComputer.OAT(1);// Calculates the Outside Air Temperature, Algorithm 1 |
| 62 | + AirDataComputer.ISAAltitude(1);// Calculates the ISA Altitude |
63 | 63 | //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 |
65 | 65 | AirDataComputer.Viscosity(1);// Calculates the dynamic viscosity, Algorithm 1 |
66 | 66 | AirDataComputer.Red(1);// Calculates the ISA altitude from static pressure, Algorithm 1 |
67 | 67 | delay(1000); //loop delay |
@@ -89,9 +89,9 @@ void loop() { |
89 | 89 | Serial.println(AirDataComputer._uT); //Outside Temperature, Static Temperature uncertainty |
90 | 90 | Serial.println(AirDataComputer._RH); //Relative Humidity |
91 | 91 | Serial.println(AirDataComputer._uRH); //Relative Humidity Uncertainty |
92 | | - Serial.println(AirDataComputer._h); //Altitude |
| 92 | + Serial.println(AirDataComputer._h,4); //Altitude |
93 | 93 | Serial.println(AirDataComputer._uh); //Altitude Uncertainty |
94 | 94 | 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 |
96 | 96 | Serial.println(AirDataComputer._Re); //Reynolds |
97 | 97 | } |
0 commit comments