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.
Diff: mecanum_4.h
- Revision:
- 0:b7d3adaffc0a
diff -r 000000000000 -r b7d3adaffc0a mecanum_4.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mecanum_4.h Mon May 07 06:57:22 2018 +0000
@@ -0,0 +1,23 @@
+#ifndef MECANUM_4_H_
+#define MECANUM_4_H_
+#include "Motor_3.h"
+#include "mbed.h"
+
+
+class mecanum_4
+{
+public:
+// mecanum_4:Motor_3 front_left(PB_3,PB_4,PB_1) {}
+// mecanum_4:Motor_3 front_right(PA_12,PA_15,PB_0) {}
+// mecanum_4:Motor_3 back_left(PB_13,PB_12,PA_6) {}
+// mecanum_4:Motor_3 back_right(PB_15,PB_14,PA_7) {}
+ void mv_x(float speed);//x
+ void mv_y(float speed);//y
+ void rotate(float speed);//rotate
+ void r_ob(float speed);//正斜向
+ void i_ob(float speed);//反斜向
+ void any_degree(float degree,float time);
+private:
+
+};
+#endif