Pārlūkot izejas kodu

manual reverts fix

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

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

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

Notiek ielāde…
Atcelt
Saglabāt