Browse Source

after the freeze2

shuvit 6 years ago
parent
commit
4be40ae7c4
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      controller2.py

+ 3
- 2
controller2.py View File

@@ -3778,8 +3778,9 @@ def main():
3778 3778
            jumping = True
3779 3779
         if grindHit == False:
3780 3780
             cont.deactivate(own.actuators['grindoutRight'])
3781
-            cont.deactivate(own.actuators['grindoutLeft'])   
3782
-        if (grindHit == True and jumping == None and sincegrinding > 20)or own['invert_on'] == True:
3781
+            cont.deactivate(own.actuators['grindoutLeft'])  
3782
+        #ground_since = own["framenum"] - own['lF_air_frame'] 
3783
+        if (grindHit == True and jumping == None and sincegrinding > 20 and ground_since > 20)or own['invert_on'] == True:
3783 3784
             outloc = 0.022
3784 3785
             bsoutloc = .07
3785 3786
             bsoutvel = .1

Loading…
Cancel
Save