Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Frozen committed Apr 7, 2024
1 parent c182c4e commit 2e34de7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@
# 超电:(溪地创新的控制板)
淘宝搜索<溪地创新>

# 部分知识讲解
# 知识讲解
motor rc imu 等 是对HAL库的封装,提供了 电机数据 电机控制函数 遥控器数据 陀螺仪数据 等
chassis 和 gimbal就是统筹这些数据,结合pid合理调用电机控制函数

1. motor:
GIM_CHAS_Angle Yaw轴GM6020编码角经过处理后的值
这个值反应了底盘和云台之间的相对角度,用于底盘跟随模式
Expand All @@ -56,6 +59,6 @@
写的不好,希望你们能搞到hello world的源码 或者去看其他开源

5. chassis & gimbal
调用motor、pid、rc、imu、referee,封装出任务函数,放到中断处理函数中实现
调用motor、pid、rc、imu、referee, 封装出任务函数,放到定时器中断处理函数中以1000Hz的频率实现

2024/4/1
3 changes: 2 additions & 1 deletion TIPS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
一些调好步兵的tips:

1.遥控器摇杆控制底盘时给的是一个渐进的值,而键盘控制时给的是一个突变值。后者若不做缓冲处理会导致底盘突然加速/减速,对方向控制十分不利。
1. 遥控器摇杆控制底盘时给的是一个渐进的值,而键盘控制时给的是一个突变值。后者若不做缓冲处理会导致底盘突然加速/减速,对方向控制十分不利。
2. 一般can总线上串上2个120欧电阻即可,要么就不串。A/C板以及大疆的电机自带120欧姆电阻

0 comments on commit 2e34de7

Please sign in to comment.