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
 
2733
 
2734
     own['set_revert_timer'] = 0
2734
     own['set_revert_timer'] = 0
2735
     ground_since = own["framenum"] - own['lF_air_frame']
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
         if q3oncdl < q4oncdl < q5oncdl < q6oncdl < q7oncdl:
2738
         if q3oncdl < q4oncdl < q5oncdl < q6oncdl < q7oncdl:
2739
             if r_ground.triggered == True:
2739
             if r_ground.triggered == True:

Loading…
Cancel
Save