14 Commits

Author SHA1 Message Date
havocrao
aab4628dcd fix: back 2025-08-18 22:12:43 +08:00
hav
d2eb82056f Add qrcode and ai camera demo 2025-08-18 20:34:03 +08:00
hav
0aa9da9327 :tad: 2025-08-18 11:06:42 +08:00
18248d7ad9 删除当前图像文件,优化 main.py 中的恢复站立逻辑,新增 lie_down 和 stand_up 方法到 BaseMsg 类,更新 task_1.py 以使用新的移动和休息功能。 2025-05-17 11:27:39 +08:00
214cc13c65 refactor(base_move): adjust moving strategy and update task execution
- Set msg.duration to 0 in move_to_hori_line to wait for next command
- Update task_1 execution flow based on QR code result
- Modify BaseMsg.stop() to use gait_id 27 for stopping
- Comment out smooth stop and use normal stop in move_to_hori_line
2025-05-15 16:41:00 +00:00
b02c2aea88 优化 move_to_hori_line 函数的移动速度控制和停止机制
- 根据目标移动距离动态调整移动速度,提升运动灵活性
- 新增平滑停止方法 stop_smooth,采用逐渐减速的方式实现更柔和的停止过程
- 确保机器人在移动和停止时的控制更加平稳
2025-05-16 00:22:31 +08:00
c493db818a refactor(base_move): improve rotation accuracy and adjust task execution
- Enhance rotation feedback by printing current angle during and after rotation
- Adjust angles and add target distance in task 1 execution
- Modify stop method in BaseMsg class to use milliseconds for duration
2025-05-15 15:22:26 +00:00
5cfdb94739 优化 arc_turn_around_hori_line 函数,调整参数和逻辑以提高旋转精度
- 修改函数参数顺序,增强可读性
- 根据角度大小调整时间补偿系数和减速阈值,确保不同角度下的运动表现更佳
- 更新停止机制,确保机器人在旋转后平稳停止
- 增加观察输出信息,便于调试和分析旋转过程中的状态
2025-05-15 22:58:18 +08:00
f484dab840 refactor(base_move): simplify arc turn logic and remove precise turn functions
- Simplified arc_turn_around_hori_line function:
  - Removed smooth stop method call
  - Added print statements for debugging
- Removed unused arc_turn_precise and arc_turn_around_hori_line_precise functions
- Updated task_1.py to use simplified arc_turn_around_hori_line
-
2025-05-15 14:37:53 +00:00
aa855b160c Merge branch 'main' of ssh://120.27.199.238:222/Havoc420mac/mi-task into main 2025-05-15 14:26:34 +00:00
4dc515505b # 5 2025-05-15 14:26:27 +00:00
021915633c 优化圆弧转弯控制逻辑,新增平滑停止和精确转弯功能
- 在 move_base_hori_line.py 中,改进了 arc_turn_around_hori_line 函数,使用平滑停止方法替代强制停止,并添加停止过程中的角度监控。
- 新增 arc_turn_precise 函数,实现更精确的圆弧转弯控制,分阶段控制速度,提升转弯精度。
- 新增 arc_turn_around_hori_line_precise 函数,结合横线检测与精确转弯功能,确保机器人在执行任务时的路径更加准确。
- 在 base_msg.py 中,新增 stop_turn_smooth 方法,提供更细致的速度减小策略,确保旋转动作的平稳停止。
2025-05-15 22:24:24 +08:00
cb84ca79ac 优化移动控制逻辑,改进平滑停止方法
- 修改 move_to_hori_line 和 arc_turn_around_hori_line 函数,使用平滑停止代替强制停止
- 调整超时时间和移动监控逻辑,确保机器人在接近目标时平稳减速
- 在 BaseMsg 类中新增 stop_smooth 方法,实现逐步减小速度的功能
2025-05-15 20:08:16 +08:00
6779c93888 task-1 #5 2025-05-15 16:43:36 +08:00