瀏覽代碼

fix for #87 - reverts

shuvit 5 年之前
父節點
當前提交
848efc2b82
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      controller2.py

+ 1
- 1
controller2.py 查看文件

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

Loading…
取消
儲存