From 4f52a5c4836f547d07c732db1c88fef1463a9a3f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 13 Nov 2023 16:16:07 +1100 Subject: [PATCH] Tools: fixed fuel flow EFI test --- Tools/autotest/arduplane.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tools/autotest/arduplane.py b/Tools/autotest/arduplane.py index 02c16a8482e703..c1078e9f4ebbef 100644 --- a/Tools/autotest/arduplane.py +++ b/Tools/autotest/arduplane.py @@ -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()