PlayBack
Dependencies: TPixy-Interface
Fork of ObjectFollower by
Diff: Drivers/motor_driver_l.h
- Revision:
- 9:fe56b888985c
diff -r a0890fa79084 -r fe56b888985c Drivers/motor_driver_l.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Drivers/motor_driver_l.h Fri Feb 23 20:58:34 2018 +0000 @@ -0,0 +1,28 @@ +/******************************************************************************/ +// 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_L_H +#define MOTOR_DRIVER_L_H + +#include "motor_driver_r.h" +//motor configuration +#define PERIOD_L 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_L_init(); +motor_state_t motorDriver_L_forward(int); +motor_state_t motorDriver_L_reverse(int); +motor_state_t motorDriver_L_stop(); + +#endif \ No newline at end of file