fix: 状态机修复 — 趴下状态下允许切换站立

趴下状态(MOTION_LIE_DOWN)同样可点击"起立"按钮下发站立指令。
机器人站立后自动进入 RL 控制,无需 App 额外下发。

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
2026-07-17 21:07:11 +08:00
parent d563585cd5
commit 23babb867b
3 changed files with 4 additions and 3 deletions
@@ -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)
}