ManualControl
Dependencies: TPixy-Interface
Fork of MbedOS_Robot_Team by
Drivers/motor_driver_l.h
- Committer:
- asobhy
- Date:
- 2018-02-23
- Revision:
- 9:fe56b888985c
File content as of revision 9:fe56b888985c:
/******************************************************************************/ // 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