修复跳跃前期蓄能bug
This commit is contained in:
1 parent
74fbbd6b6e
commit
78219e6a1f
1 file changed
+2
-2
@@ -641,8 +641,8 @@ void jump_loop()
|
|||||||
if(jump_pre_flag > 0 ){
|
if(jump_pre_flag > 0 ){
|
||||||
jump_pre_flag ++;
|
jump_pre_flag ++;
|
||||||
}
|
}
|
||||||
// 收缩小腿蓄能已经结束,且舵机停止运动了
|
// 给jump_pre_flag一点余量,确保收缩小腿蓄能已经结束,且舵机停止运动了
|
||||||
if(jump_pre_flag && !sms_sts.ReadMove(ID[0]) && !sms_sts.ReadMove(ID[1])){
|
if(jump_pre_flag > 20 && !sms_sts.ReadMove(ID[0]) && !sms_sts.ReadMove(ID[1])){
|
||||||
|
|
||||||
// 前后左右跳跃配合loop函数中脉冲
|
// 前后左右跳跃配合loop函数中脉冲
|
||||||
if( left_jump_flag ){
|
if( left_jump_flag ){
|
||||||
|
|||||||
Reference in new issue
Block a user