Skip to content

Commit

Permalink
Tools: fixed fuel flow EFI test
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Nov 13, 2023
1 parent ca94c89 commit 4f52a5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tools/autotest/arduplane.py
Original file line number Diff line number Diff line change
Expand Up @@ -4257,8 +4257,9 @@ def EFITest(self, efi_type, name, sim_name, check_fuel_flow=True):
"throttle_position": 31,
"intake_manifold_temperature": 28,
}, very_verbose=1, epsilon=2)

if check_fuel_flow:
if abs(m.fuel_flow - 0.2) > 0.0001:
if abs(m.fuel_flow - 0.2) < 0.0001:
raise NotAchievedException("Expected fuel flow")

self.disarm_vehicle()
Expand Down

0 comments on commit 4f52a5c

Please sign in to comment.