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.
MotorDrive.h
00001 #include "mbed.h" 00002 /* 00003 void morter1(char,float); 00004 void morter2(char,float); 00005 void morter3(char,float); 00006 */ 00007 //void motor(); 00008 //void motor(int,char,float); 00009 00010 enum direction_of_rotation{ 00011 CW, 00012 CCW, 00013 STOP 00014 }; 00015 00016 typedef enum{ 00017 LIMITSWITCH, 00018 MAINSWITCH 00019 }SW; 00020 00021 /* 00022 void morter1(char direction_of_rotation,float PWM_PULSEWIDTH ); 00023 void morter2(char direction_of_rotation,float PWM_PULSEWIDTH ); 00024 void morter3(char direction_of_rotation,float PWM_PULSEWIDTH ); 00025 */ 00026 void motor_init(); 00027 void motor(int motor_num,char direction_of_rotation,float PWM_WRITE);
Generated on Wed Jul 13 2022 04:06:48 by
1.7.2