These are the core files for the Robot at Team conception.

Dependencies:   mbed UniServ

Revision:
15:4efc66de795a
Parent:
8:351b0b7b05b2
Child:
17:ec52258b9472
--- a/SpeedControl.h	Mon May 29 13:10:00 2017 +0000
+++ b/SpeedControl.h	Mon Jun 05 07:56:08 2017 +0000
@@ -14,19 +14,16 @@
 {
 
 public:
-                //SpeedControl();
+
                 SpeedControl(PwmOut* pwmLeft, PwmOut* pwmRight, EncoderCounter* counterLeft, EncoderCounter* counterRight);     // constructor  
     virtual     ~SpeedControl();        //destructor    
     
     void        speedCtrl();
     void        setDesiredSpeed( float L, float R);
-    void        init(PwmOut* pwmL, PwmOut* pwmR);  // initializes pwm to set desired speed
 
     LowpassFilter speedLeftFilter;
     LowpassFilter speedRightFilter;
 
-    //DigitalOut my_led(LED1);
-
 private:
 
     //static allows you to initialize variables within the header
@@ -45,6 +42,7 @@
     PwmOut* pwmRight;
     EncoderCounter* counterRight;
     EncoderCounter* counterLeft;
+    Ticker t2;
 
     short previousValueCounterRight ;  // was = 0
     short previousValueCounterLeft;     // same