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.
Dependencies: BNO055_fusion mbed
Diff: LOCOMOTION.h
- Revision:
- 6:0602a9e8118b
- Child:
- 15:7729da55873a
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/LOCOMOTION.h Wed Mar 16 22:05:23 2016 +0000
@@ -0,0 +1,21 @@
+#ifndef LOCOMOTION_H
+#define LOCOMOTION_H
+
+#include "mbed.h"
+
+typedef struct {
+ uint8_t m1f;
+ uint8_t m1b;
+ uint8_t m2f;
+ uint8_t m2b;
+ bool f1;
+ bool f2;
+} LOCOMOTION_speed;
+
+class LOCOMOTION
+{
+public:
+ LOCOMOTION(PwmOut& motor1F, PwmOut& motor1B,PwmOut& motor2F, PwmOut& motor2B, DigitalOut& forward1, DigitalOut& forward2);
+ LOCOMOTION_speed _speed;
+};
+#endif
\ No newline at end of file