Browse Source

manual reverts fix

shuvit 5 years ago
parent
commit
0f978dcf57
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      scripts/controller2.py

+ 1
- 1
scripts/controller2.py View File

@@ -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:

Loading…
Cancel
Save