Skip to content

Latest commit

 

History

History
73 lines (50 loc) · 1.15 KB

File metadata and controls

73 lines (50 loc) · 1.15 KB

2023VEX-Code

接线(以主控为原点,滚筒为前方)

  1. 左前电机
  2. 左后上方电机
  3. 左后下方电机
  4. 右前电机
  5. 右后上方电机
  6. 无线接收器
  7. 右后下方电机
  8. IMU (经费不足目前没有)
  9. 发射
  10. 爬升触发
  11. 滚筒小电机

自动

自动在include\parameters.h第六行调节,对应关系如下

auton_strategy = 0

屏幕显示 auto one

auton_strategy = 1

屏幕显示 auto two

auton_strategy = 2

屏幕显示 auto three

auton_strategy = 3

屏幕显示 auto four

auton_strategy = 4

什么都不做,屏幕显示yousb

操作

摇杆

  • axis1:转向
  • axis3:前后

按钮

  • L1:按住弹射
  • R1:按住滚筒向外吐球
  • R2:按住滚筒向内吸球

模板简介

​这是一个基于VEX V5竞赛模板的基本程序,它由C++编写,包含了

  • 基本的底盘控制
  • PID控制
  • PID调参
  • 基于电机编码器与陀螺仪的GPS定位
  • 自动框架