arduino stuffs
Diffstat (limited to 'car_driver/arduino/drive.h')
-rw-r--r--car_driver/arduino/drive.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/car_driver/arduino/drive.h b/car_driver/arduino/drive.h
new file mode 100644
index 0000000..1850ce9
--- /dev/null
+++ b/car_driver/arduino/drive.h
@@ -0,0 +1,18 @@
+#ifndef DRIVE_H
+#define DRIVE_H
+
+#include "motor.h"
+
+Motor motor_b(13, 8, 11);
+Motor motor_a(12, 9, 3);
+
+inline void begin() {
+ motor_a.begin();
+ motor_b.begin();
+}
+
+inline void stop() {
+ motor_a.brake();
+ motor_b.brake();
+}
+#endif \ No newline at end of file