d

Dependencies:   mbed

Fork of MyClass by Roboshark

Revision:
0:af3f2e5c9cd4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/drive.h	Thu Apr 19 11:53:52 2018 +0000
@@ -0,0 +1,23 @@
+
+
+
+
+public:
+
+    Drive(int number, Controller& controller, EncoderCounter& counterLeft, EncoderCounter& counterRight, 
+    IRSensor& irSensorF, IRSensor& irSensorR, IRSensor& irSensorL);                                                            
+
+    void driveStraightFields(float speed, int fields);                  //Wie viele Felder er fahren soll
+    void turn(int angle);                                               //Funktion für das Drehen des Roboters
+
+
+
+private:
+    static const float WHEEL_DIAMETER;
+    static const float WHEEL_CIRCUMFERENCE;
+    static const float ROTATION_RPM;
+    static const int FIELD_LENGTH;
+    static const int MEAN_AXLE_LENGTH;
+    static const int FIELD_LENGTH;
+    static const float M_PI;
+    int number;
\ No newline at end of file