QQQ

Dependencies:   mbed-rtos mbed

Fork of BX-car_s by Tony Lin

Committer:
TonyLin
Date:
Thu Jun 26 14:29:53 2014 +0000
Revision:
10:9f0ce6ba7663
Parent:
1:82bc25a7b68b
ok;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
backman 1:82bc25a7b68b 1 #include "mbed.h"
backman 1:82bc25a7b68b 2
backman 1:82bc25a7b68b 3 class BX_motor{
backman 1:82bc25a7b68b 4 public:
TonyLin 10:9f0ce6ba7663 5 BX_motor(char type);
TonyLin 10:9f0ce6ba7663 6 void rotate(float level);
TonyLin 10:9f0ce6ba7663 7
backman 1:82bc25a7b68b 8 private:
TonyLin 10:9f0ce6ba7663 9 float Level;
TonyLin 10:9f0ce6ba7663 10 char Type;
TonyLin 10:9f0ce6ba7663 11 PwmOut* forward_A;
TonyLin 10:9f0ce6ba7663 12 PwmOut* backward_A;
TonyLin 10:9f0ce6ba7663 13 PwmOut* forward_B;
TonyLin 10:9f0ce6ba7663 14 PwmOut* backward_B;
TonyLin 10:9f0ce6ba7663 15 DigitalOut* engine_enable;
backman 1:82bc25a7b68b 16 };