Skip to content
Snippets Groups Projects
Commit c0c732f5 authored by Federico Mandelli's avatar Federico Mandelli
Browse files

[Pitot] Now checks that inputs are greater then 0

parent 1cc7aa4d
Branches
No related tags found
No related merge requests found
...@@ -60,7 +60,8 @@ public: ...@@ -60,7 +60,8 @@ public:
float totalPressure = getTotalPressure(); float totalPressure = getTotalPressure();
float staticPressure = getStaticPressure(); float staticPressure = getStaticPressure();
PitotData pitotSpeed; PitotData pitotSpeed;
if (totalPressure > staticPressure) if (totalPressure > 0 && staticPressure > 0 &&
totalPressure > staticPressure)
{ {
float gamma = 1.4f; float gamma = 1.4f;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment