Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: TPixy-Interface
Fork of PlayBack by
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
Generated on Thu Jul 14 2022 04:16:50 by
1.7.2
