Pārlūkot izejas kodu

fix for #87 - reverts

shuvit 5 gadus atpakaļ
vecāks
revīzija
848efc2b82
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      controller2.py

+ 1
- 1
controller2.py Parādīt failu

@@ -2734,7 +2734,7 @@ def main():
2734 2734
 
2735 2735
     own['set_revert_timer'] = 0
2736 2736
     ground_since = own["framenum"] - own['lF_air_frame']
2737
-    if ground_since > 80 and frames_since_grinding > 40:
2737
+    if ground_since > 80 and frames_since_grinding > 40 and rLR > -turnsens and rLR < turnsens and rUD > -turnsens and rUD < turnsens:
2738 2738
 
2739 2739
         if q3oncdl < q4oncdl < q5oncdl < q6oncdl < q7oncdl:
2740 2740
             if r_ground.triggered == True:

Notiek ielāde…
Atcelt
Saglabāt