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 main
No related tags found
No related merge requests found
......@@ -60,7 +60,8 @@ public:
float totalPressure = getTotalPressure();
float staticPressure = getStaticPressure();
PitotData pitotSpeed;
if (totalPressure > staticPressure)
if (totalPressure > 0 && staticPressure > 0 &&
totalPressure > staticPressure)
{
float gamma = 1.4f;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment