#include <AirDC.h>
|
int | _pid |
|
char | _status [11] |
|
char | _logfile [15] =DEFAULT_LOG_FILE |
|
char | _datasel [25] ={'0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','\0'} |
|
double | _dataout [25] |
|
double | _d |
|
double | _PitotXcog |
|
double | _PitotYcog |
|
double | _PitotZcog |
|
double | _p |
|
double | _pRaw |
|
double | _T |
|
double | _TRaw |
|
double | _RH |
|
double | _qc |
|
double | _qcRaw |
|
double | _AOA |
|
double | _AOS |
|
double | _pSeaLevel |
|
double | _Tdeltap |
|
double | _Tabsp |
|
double | _TdeltapRaw |
|
double | _TabspRaw |
|
double | _Rho |
|
double | _IAS |
|
double | _CAS |
|
double | _TAS |
|
double | _TASPCorrected |
|
double | _M |
|
double | _TAT |
|
double | _h |
|
double | _mu |
|
double | _Re |
|
double | _AOAdot |
|
double | _AOSdot |
|
double | _up |
|
double | _uT |
|
double | _uRH |
|
double | _uqc |
|
double | _uRho |
|
double | _uIAS |
|
double | _uCAS |
|
double | _uTAS |
|
double | _uTAT |
|
double | _uh |
|
double | _Ip |
|
double | _Iq |
|
double | _Ir |
|
double | _c |
|
double | _DpZeroMeas |
|
double | _GainDp |
|
◆ AirDC()
AirDC - Library for Basic Air Data calculations J.L.J (C)2015, Basic Air Data Team.
Refer to http:\www.basicairdata.eu
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implie d warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
AirDC Default constructor
◆ CalibrationFactor()
void AirDC::CalibrationFactor |
( |
int |
mode | ) |
|
Returns the calibration factor for the probe in function of operative conditions
- Parameters
-
Mode | 1 fixed value c=1 |
Mode | 2 Basic Air Data 8 mm Probe |
- Returns
- Void
◆ CAS()
void AirDC::CAS |
( |
int |
mode | ) |
|
◆ CorrectDp()
double AirDC::CorrectDp |
( |
int |
SensorID, |
|
|
double |
DpMeas |
|
) |
| |
Calculates correction factor for differential pressure measurements (SI) taken by sensorID
- Parameters
-
SensorID | Indicates the Sensor |
Pascal | deltap measurement |
- Returns
- Correction Offset [Pa]
◆ IAS()
void AirDC::IAS |
( |
int |
mode | ) |
|
Calcualtes Indicated Airspeed IAS=ASI=EAS
- Parameters
-
- Returns
- Void
◆ ISAAltitude()
void AirDC::ISAAltitude |
( |
int |
mode | ) |
|
Calculates barometric altitude with ISA atmosphere
- Parameters
-
- Returns
- Void
◆ Mach()
void AirDC::Mach |
( |
int |
mode | ) |
|
◆ OAT()
void AirDC::OAT |
( |
int |
mode | ) |
|
Calculates Outside Air Temperature
- Parameters
-
- Returns
- Void
◆ OutputSerial()
String AirDC::OutputSerial |
( |
int |
mode | ) |
|
◆ PitotCorrection()
void AirDC::PitotCorrection |
( |
int |
mode | ) |
|
Correct TAS based on pitot placement
- Parameters
-
- Returns
- Void
◆ PrepareData()
void AirDC::PrepareData |
( |
void |
| ) |
|
Order all the data within an array
- Returns
- Void
◆ Red()
void AirDC::Red |
( |
int |
mode | ) |
|
Calculates Re number
- Parameters
-
Mode | 1 Uses _d as reference dimension |
- Returns
- Void
◆ RhoAir()
void AirDC::RhoAir |
( |
int |
mode | ) |
|
Calculates the Air Density
- Parameters
-
- Returns
- Void
◆ TAS()
void AirDC::TAS |
( |
int |
mode | ) |
|
◆ Viscosity()
void AirDC::Viscosity |
( |
int |
mode | ) |
|
Calculates Air Viscosity
- Parameters
-
Mode | 1 Calculate viscosity in Pas with Sutherland's formula |
Mode | 2 Calculate viscosity 10-6*Pas with Sutherland's formula |
- Returns
- Void
◆ _AOA
◆ _AOAdot
Time derivate of AOA rad/s
◆ _AOS
◆ _AOSdot
Time derivate of AOS rad/s
◆ _c
◆ _CAS
◆ _d
Reference length for Re number calculation
◆ _dataout
double AirDC::_dataout[25] |
◆ _datasel
char AirDC::_datasel[25] ={'0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','\0'} |
Data selection vector see communication protocol msg #9
◆ _DpZeroMeas
double AirDC::_DpZeroMeas |
Sensor count value when zero differential pressure is applied
◆ _GainDp
◆ _h
◆ _IAS
◆ _Ip
◆ _Iq
◆ _Ir
◆ _logfile
Defines the active log file name
◆ _M
◆ _mu
◆ _p
◆ _pid
◆ _PitotXcog
Distance along x body axes of the Pitot tip from center of gravity
◆ _PitotYcog
Distance along y body axes of the Pitot tip from center of gravity
◆ _PitotZcog
Distance along z body axes of the Pitot tip from center of gravity
◆ _pRaw
Static pressure raw sensor value
◆ _pSeaLevel
Value of pressure at sea level Pa
◆ _qc
Differential pressure at Pitot, Pascal
◆ _qcRaw
Raw sensor value of differential pressure at Pitot, Impact pressure minus static pressure Pa
◆ _Re
◆ _RH
◆ _Rho
◆ _status
Hardware Status vector see communication protocol msg #5
◆ _T
◆ _Tabsp
Temperature at absolute p sensor
◆ _TabspRaw
Raw temperature at absolute p sensor
◆ _TAS
◆ _TASPCorrected
double AirDC::_TASPCorrected |
True Air Speed, corrected m/s
◆ _TAT
◆ _Tdeltap
Temperature at deltap sensor
◆ _TdeltapRaw
double AirDC::_TdeltapRaw |
Raw temperature at deltap sensor
◆ _TRaw
Temperature sensor counts
◆ _uCAS
◆ _uh
◆ _uIAS
◆ _up
◆ _uqc
Differential pressure uncertainty Pa
◆ _uRH
Relative Humidity uncertainty
◆ _uRho
Air density uncertainty kg/^3
◆ _uT
Temperature uncertainty Pa
◆ _uTAS
◆ _uTAT
The documentation for this class was generated from the following files:
- /home/jlj/github/AirDataComputer/Software/Microcontroller/Libraries/AirDC/AirDC.h
- /home/jlj/github/AirDataComputer/Software/Microcontroller/Libraries/AirDC/AirDC.cpp