ManualControl
Dependencies: TPixy-Interface
Fork of MbedOS_Robot_Team by
Drivers/motor_driver_r.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_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