fix: 状态机修复 — 趴下状态下允许切换站立
趴下状态(MOTION_LIE_DOWN)同样可点击"起立"按钮下发站立指令。 机器人站立后自动进入 RL 控制,无需 App 额外下发。 Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
@@ -319,7 +319,8 @@ private fun ControlButtons(
|
||||
// 运动状态转换
|
||||
ControlButton(
|
||||
"起立",
|
||||
enabled = connected && motionState == ControlCommands.MOTION_IDLE
|
||||
enabled = connected && (motionState == ControlCommands.MOTION_IDLE ||
|
||||
motionState == ControlCommands.MOTION_LIE_DOWN)
|
||||
) {
|
||||
viewModel.sendMotionControl(ControlCommands.MOTION_STAND)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user