ManualControl

Dependencies:   TPixy-Interface

Fork of MbedOS_Robot_Team by ECE4333 - 2018 - Ahmed & Brandon

Committer:
asobhy
Date:
Fri Feb 23 20:58:34 2018 +0000
Revision:
9:fe56b888985c
right after the two motors are running

Who changed what in which revision?

UserRevisionLine numberNew contents of line
asobhy 9:fe56b888985c 1 /******************************************************************************/
asobhy 9:fe56b888985c 2 // ECE4333
asobhy 9:fe56b888985c 3 // LAB Partner 1: Ahmed Sobhy - ID: 3594449
asobhy 9:fe56b888985c 4 // LAB Partner 2: Brandon Kingman - ID: 3470444
asobhy 9:fe56b888985c 5 // Project: Autonomous Robot Design
asobhy 9:fe56b888985c 6 // Instructor: Prof. Chris Diduch
asobhy 9:fe56b888985c 7 /******************************************************************************/
asobhy 9:fe56b888985c 8
asobhy 9:fe56b888985c 9 #ifndef MOTOR_DRIVER_L_H
asobhy 9:fe56b888985c 10 #define MOTOR_DRIVER_L_H
asobhy 9:fe56b888985c 11
asobhy 9:fe56b888985c 12 #include "motor_driver_r.h"
asobhy 9:fe56b888985c 13 //motor configuration
asobhy 9:fe56b888985c 14 #define PERIOD_L 40 // period in us -> frequency = 25kHz -- audible frequency is between 20Hz - 20kHz
asobhy 9:fe56b888985c 15 /*
asobhy 9:fe56b888985c 16 typedef enum { MOTOR_UNINIT,
asobhy 9:fe56b888985c 17 MOTOR_INIT,
asobhy 9:fe56b888985c 18 MOTOR_FORWARD,
asobhy 9:fe56b888985c 19 MOTOR_REVERSE,
asobhy 9:fe56b888985c 20 MOTOR_STOPPED
asobhy 9:fe56b888985c 21 } motor_state_t;
asobhy 9:fe56b888985c 22 */
asobhy 9:fe56b888985c 23 motor_state_t motorDriver_L_init();
asobhy 9:fe56b888985c 24 motor_state_t motorDriver_L_forward(int);
asobhy 9:fe56b888985c 25 motor_state_t motorDriver_L_reverse(int);
asobhy 9:fe56b888985c 26 motor_state_t motorDriver_L_stop();
asobhy 9:fe56b888985c 27
asobhy 9:fe56b888985c 28 #endif