ECE4333 - 2018 - Ahmed & Brandon / Mbed OS ObjectFollower

Dependencies:   TPixy-Interface

Fork of PlayBack by ECE4333 - 2018 - Ahmed & Brandon

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers motor_driver_l.h Source File

motor_driver_l.h

00001 /******************************************************************************/
00002 // ECE4333
00003 // LAB Partner 1:   Ahmed Sobhy - ID: 3594449
00004 // LAB Partner 2:   Brandon Kingman - ID: 3470444
00005 // Project:         Autonomous Robot Design
00006 // Instructor:      Prof. Chris Diduch
00007 /******************************************************************************/
00008 
00009 #ifndef MOTOR_DRIVER_L_H
00010 #define MOTOR_DRIVER_L_H
00011 
00012 #include "motor_driver_r.h"
00013 //motor configuration
00014 #define PERIOD_L  40     // period in us -> frequency = 25kHz -- audible frequency is between 20Hz - 20kHz
00015 /*
00016 typedef enum { MOTOR_UNINIT,
00017                MOTOR_INIT,
00018                MOTOR_FORWARD,
00019                MOTOR_REVERSE,
00020                MOTOR_STOPPED
00021              } motor_state_t;
00022 */
00023 motor_state_t motorDriver_L_init();
00024 motor_state_t motorDriver_L_forward(int);
00025 motor_state_t motorDriver_L_reverse(int);
00026 motor_state_t motorDriver_L_stop();
00027 
00028 #endif