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.
auto2wheel.h@0:528f6a3352b9, 2018-05-10 (annotated)
- Committer:
- himarsmty
- Date:
- Thu May 10 04:44:46 2018 +0000
- Revision:
- 0:528f6a3352b9
?
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| himarsmty | 0:528f6a3352b9 | 1 | #ifndef AUTO2WHEEL_H_ |
| himarsmty | 0:528f6a3352b9 | 2 | #define AUTO2WHEEL_H_ |
| himarsmty | 0:528f6a3352b9 | 3 | #include "mbed.h" |
| himarsmty | 0:528f6a3352b9 | 4 | #include "Motor_3.h" |
| himarsmty | 0:528f6a3352b9 | 5 | class auto2wheel{ |
| himarsmty | 0:528f6a3352b9 | 6 | public: |
| himarsmty | 0:528f6a3352b9 | 7 | auto2wheel():_Vx1(0),_Vx2(0),_argular(0){} |
| himarsmty | 0:528f6a3352b9 | 8 | void mv_x(double speed1,double speed2); |
| himarsmty | 0:528f6a3352b9 | 9 | void spin(double argular); |
| himarsmty | 0:528f6a3352b9 | 10 | protected: |
| himarsmty | 0:528f6a3352b9 | 11 | double _Vx1; |
| himarsmty | 0:528f6a3352b9 | 12 | double _Vx2; |
| himarsmty | 0:528f6a3352b9 | 13 | double _argular; |
| himarsmty | 0:528f6a3352b9 | 14 | }; |
| himarsmty | 0:528f6a3352b9 | 15 | |
| himarsmty | 0:528f6a3352b9 | 16 | #endif |