hej

Dependents:   RoboticHackathon

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers hack_motor.h Source File

hack_motor.h

00001 #ifndef HACK_MOTOR_H
00002 #define HACK_MOTOR_H
00003 #include "mbed.h"
00004 
00005 class Wheel {
00006  
00007 public:
00008     PwmOut M1A, M2A;
00009     
00010     DigitalOut M1B, M2B;
00011     
00012     Wheel();
00013     void FW();
00014     void BW();
00015     void right();
00016     void left();
00017     void stop();
00018     void init();
00019     float speed;
00020 protected:
00021     float fw, bw;
00022     
00023 };
00024 
00025     
00026 
00027 #endif