PlayBack

Dependencies:   TPixy-Interface

Fork of ManualControlFinal by ECE4333 - 2018 - Ahmed & Brandon

Revision:
9:fe56b888985c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Drivers/motor_driver_r.h	Fri Feb 23 20:58:34 2018 +0000
@@ -0,0 +1,27 @@
+/******************************************************************************/
+// ECE4333
+// LAB Partner 1:   Ahmed Sobhy - ID: 3594449
+// LAB Partner 2:   Brandon Kingman - ID: 3470444
+// Project:         Autonomous Robot Design
+// Instructor:      Prof. Chris Diduch
+/******************************************************************************/
+
+#ifndef MOTOR_DRIVER_R_H
+#define MOTOR_DRIVER_R_H
+
+//motor configuration
+#define PERIOD_R  40     // period in us -> frequency = 25kHz -- audible frequency is between 20Hz - 20kHz
+
+typedef enum { MOTOR_UNINIT,
+               MOTOR_INIT,
+               MOTOR_FORWARD,
+               MOTOR_REVERSE,
+               MOTOR_STOPPED
+             } motor_state_t;
+
+motor_state_t motorDriver_R_init();
+motor_state_t motorDriver_R_forward(int);
+motor_state_t motorDriver_R_reverse(int);
+motor_state_t motorDriver_R_stop();
+
+#endif
\ No newline at end of file