Skip to content

Commit 595c40e

Browse files
authored
Merge pull request #75 from JLJu/master
Syntax Fix
2 parents 0711853 + d27dc47 commit 595c40e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • Software/Microcontroller/Libraries/AirDC

Software/Microcontroller/Libraries/AirDC/AirDC.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ void AirDC::IAS(int mode)
176176
_qc=-1*_qc;
177177
}
178178
_IAS=1.27775310604201*sqrt(_qc);
179-
_uIAS=0.638876553021004/(sqrt(abs(_qc))*_uqc;
179+
_uIAS=0.638876553021004/(sqrt(abs(_qc)))*_uqc;
180180
break;
181181
}
182182
}
@@ -263,7 +263,8 @@ void AirDC::ISAAltitude(int mode)
263263
//Sea level pressure should be put into _pSeaLevel. Mimics https://en.wikipedia.org/wiki/QNH
264264
{
265265
int i;
266-
double f,fdot,t0,t1,t,erralt;
266+
double f,fdot,t0,t1,t,erralt,Ps;
267+
Ps=_p*0.000295299875080277;//Pa to inHg Conversion
267268
i=0;
268269
t0=1000; //Newton's initial value
269270
erralt=0; //Newton's initial value

0 commit comments

Comments
 (0)