Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
mecanum_4.h@0:b7d3adaffc0a, 2018-05-07 (annotated)
- Committer:
- himarsmty
- Date:
- Mon May 07 06:57:22 2018 +0000
- Revision:
- 0:b7d3adaffc0a
a
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| himarsmty | 0:b7d3adaffc0a | 1 | #ifndef MECANUM_4_H_ |
| himarsmty | 0:b7d3adaffc0a | 2 | #define MECANUM_4_H_ |
| himarsmty | 0:b7d3adaffc0a | 3 | #include "Motor_3.h" |
| himarsmty | 0:b7d3adaffc0a | 4 | #include "mbed.h" |
| himarsmty | 0:b7d3adaffc0a | 5 | |
| himarsmty | 0:b7d3adaffc0a | 6 | |
| himarsmty | 0:b7d3adaffc0a | 7 | class mecanum_4 |
| himarsmty | 0:b7d3adaffc0a | 8 | { |
| himarsmty | 0:b7d3adaffc0a | 9 | public: |
| himarsmty | 0:b7d3adaffc0a | 10 | // mecanum_4:Motor_3 front_left(PB_3,PB_4,PB_1) {} |
| himarsmty | 0:b7d3adaffc0a | 11 | // mecanum_4:Motor_3 front_right(PA_12,PA_15,PB_0) {} |
| himarsmty | 0:b7d3adaffc0a | 12 | // mecanum_4:Motor_3 back_left(PB_13,PB_12,PA_6) {} |
| himarsmty | 0:b7d3adaffc0a | 13 | // mecanum_4:Motor_3 back_right(PB_15,PB_14,PA_7) {} |
| himarsmty | 0:b7d3adaffc0a | 14 | void mv_x(float speed);//x |
| himarsmty | 0:b7d3adaffc0a | 15 | void mv_y(float speed);//y |
| himarsmty | 0:b7d3adaffc0a | 16 | void rotate(float speed);//rotate |
| himarsmty | 0:b7d3adaffc0a | 17 | void r_ob(float speed);//正斜向 |
| himarsmty | 0:b7d3adaffc0a | 18 | void i_ob(float speed);//反斜向 |
| himarsmty | 0:b7d3adaffc0a | 19 | void any_degree(float degree,float time); |
| himarsmty | 0:b7d3adaffc0a | 20 | private: |
| himarsmty | 0:b7d3adaffc0a | 21 | |
| himarsmty | 0:b7d3adaffc0a | 22 | }; |
| himarsmty | 0:b7d3adaffc0a | 23 | #endif |