From 02643d36cd76c54797b175f396cdb11fa0466bc4 Mon Sep 17 00:00:00 2001 From: Richard Harrison Date: Sun, 16 Sep 2018 19:21:23 +0200 Subject: [PATCH] Controls: Remove debug prints --- Nasal/controls.nas | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Nasal/controls.nas b/Nasal/controls.nas index 4624fc7d1..3ba9ff161 100644 --- a/Nasal/controls.nas +++ b/Nasal/controls.nas @@ -271,21 +271,15 @@ setElevatorTrimToPosition = func() { nv = math.min(math.max(-1.0,nv),1.0); var lv = getprop("/controls/flight/elevator"); if (math.abs(lv) <= 0.001){ - print("Elevator trim: centre"); setprop("/controls/flight/elevator-trim", 0); } else { -#print("Trim when centered stick"); setElevatorTrimToPosition_listener = setlistener("/controls/flight/elevator", func(v){ if (math.abs(v.getValue()) <= 0.001) { setprop("controls/flight/elevator",0); removelistener(setElevatorTrimToPosition_listener); setElevatorTrimToPosition_listener = nil; -# print("set trim to ",nv); setprop("/controls/flight/elevator-trim", nv); } -# else -# print("Not trimming yet ",v.getValue()); - }, 0, 0); } }