修正运动库中的错误
This commit is contained in:
parent
ac981b51b3
commit
8c4c7b54b8
@ -115,6 +115,7 @@ void Move::Forward(float speed_rate)
|
|||||||
|
|
||||||
current_direction = FORWARD;
|
current_direction = FORWARD;
|
||||||
current_speed_rate = speed_rate;
|
current_speed_rate = speed_rate;
|
||||||
|
current_turn_speed_rate = 1.0;
|
||||||
|
|
||||||
#ifdef MOVE_DEBUG
|
#ifdef MOVE_DEBUG
|
||||||
//调试输出前进状态
|
//调试输出前进状态
|
||||||
@ -134,6 +135,7 @@ void Move::Backward(float speed_rate)
|
|||||||
|
|
||||||
current_direction = BACKWARD;
|
current_direction = BACKWARD;
|
||||||
current_speed_rate = speed_rate;
|
current_speed_rate = speed_rate;
|
||||||
|
current_turn_speed_rate = 1.0;
|
||||||
|
|
||||||
#ifdef MOVE_DEBUG
|
#ifdef MOVE_DEBUG
|
||||||
//调试输出后退状态
|
//调试输出后退状态
|
||||||
@ -233,6 +235,7 @@ void Move::Stop(void)
|
|||||||
|
|
||||||
current_direction = STOP;
|
current_direction = STOP;
|
||||||
current_speed_rate = 0;
|
current_speed_rate = 0;
|
||||||
|
current_turn_speed_rate = 1.0;
|
||||||
|
|
||||||
#ifdef MOVE_DEBUG
|
#ifdef MOVE_DEBUG
|
||||||
//调试输出制动状态
|
//调试输出制动状态
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user