清理多余策略
This commit is contained in:
@@ -161,12 +161,6 @@ class UDPFSMController:
|
||||
elif event_code == "mode_stride":
|
||||
self.motion_frame.mode_tag = "mode_stride"
|
||||
self.last_fsm_command_time = packet.sent_at
|
||||
elif event_code == "mode_dash":
|
||||
self.motion_frame.mode_tag = "mode_dash"
|
||||
self.last_fsm_command_time = packet.sent_at
|
||||
elif event_code == "mode_xrun":
|
||||
self.motion_frame.mode_tag = "mode_xrun"
|
||||
self.last_fsm_command_time = packet.sent_at
|
||||
elif event_code == "surge_up":
|
||||
self.motion_frame.surge_goal = min(
|
||||
self.max_surge, self.motion_frame.surge_goal + self.surge_step
|
||||
@@ -236,8 +230,6 @@ class UDPFSMController:
|
||||
"pose_home": "gotoZERO",
|
||||
"pose_hold": "gotoSTOP",
|
||||
"mode_stride": "gotoWALKAMP",
|
||||
"mode_dash": "gotoMYPOLICY",
|
||||
"mode_xrun": "gotoXSIMRUN",
|
||||
}
|
||||
self.udp_flag.enable = self.motion_frame.relay_on
|
||||
self.udp_flag.fsm_state_command = mode_to_fsm_command.get(
|
||||
|
||||
Reference in New Issue
Block a user