Tony Lin / Mbed 2 deprecated BX-car_s

Dependencies:   mbed-rtos mbed

Fork of BX-car_2 by Tony Lin

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers motor_api.h Source File

motor_api.h

00001 #include "mbed.h"
00002 
00003 
00004 class BX_motor{
00005     
00006     public:
00007     
00008        BX_motor(char type);
00009        
00010     
00011     
00012        void rotate(float level);
00013        
00014        
00015        
00016     private:
00017     
00018       float Level;
00019        
00020       char Type;
00021       
00022       PwmOut* forward_A;
00023       PwmOut* backward_A;
00024 
00025       PwmOut* forward_B;
00026       PwmOut* backward_B;
00027 
00028 
00029       DigitalOut* engine_enable;
00030 
00031     
00032     
00033     };