DERPS

Dependencies:   BMP280 BNO055_fusion PowerControl mbed

Fork of STRAIGHT_DRIVE_NO_SEP by Antoine Laurens

Committer:
12104404
Date:
Wed Mar 16 22:05:23 2016 +0000
Revision:
6:0602a9e8118b
Child:
15:7729da55873a
derp derp

Who changed what in which revision?

UserRevisionLine numberNew contents of line
12104404 6:0602a9e8118b 1 #ifndef LOCOMOTION_H
12104404 6:0602a9e8118b 2 #define LOCOMOTION_H
12104404 6:0602a9e8118b 3
12104404 6:0602a9e8118b 4 #include "mbed.h"
12104404 6:0602a9e8118b 5
12104404 6:0602a9e8118b 6 typedef struct {
12104404 6:0602a9e8118b 7 uint8_t m1f;
12104404 6:0602a9e8118b 8 uint8_t m1b;
12104404 6:0602a9e8118b 9 uint8_t m2f;
12104404 6:0602a9e8118b 10 uint8_t m2b;
12104404 6:0602a9e8118b 11 bool f1;
12104404 6:0602a9e8118b 12 bool f2;
12104404 6:0602a9e8118b 13 } LOCOMOTION_speed;
12104404 6:0602a9e8118b 14
12104404 6:0602a9e8118b 15 class LOCOMOTION
12104404 6:0602a9e8118b 16 {
12104404 6:0602a9e8118b 17 public:
12104404 6:0602a9e8118b 18 LOCOMOTION(PwmOut& motor1F, PwmOut& motor1B,PwmOut& motor2F, PwmOut& motor2B, DigitalOut& forward1, DigitalOut& forward2);
12104404 6:0602a9e8118b 19 LOCOMOTION_speed _speed;
12104404 6:0602a9e8118b 20 };
12104404 6:0602a9e8118b 21 #endif