inkl Line Sensor
Dependencies: mbed
Fork of Roboshark_V2 by
Diff: Fahren.h
- Revision:
- 0:6d0671ae4648
- Child:
- 1:a95ba1510438
diff -r 000000000000 -r 6d0671ae4648 Fahren.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Fahren.h Mon Apr 23 11:28:11 2018 +0000 @@ -0,0 +1,38 @@ +#ifndef FAHREN_H_ +#define FAHREN_H_ + +#include <mbed.h> +#include "EncoderCounter.h" +#include "Controller.h" + +class Fahren{ + + public: + Fahren(Controller& controller, EncoderCounter& counterLeft, EncoderCounter& counterRight); //Konstruktor + + virtual ~Fahren(); + + void geradeaus(); + void rechts90(); + void rechts180(); + void rechts270(); + + + private: + Controller& controller; + EncoderCounter& counterLeft; + EncoderCounter& counterRight; + + //Variablen die in der Klasse Fahren verwendet werden + double speedRight; + double speedLeft; + short initialClicksLeft; + short initialClicksRight; + short wegLinks; + short wegRechts; + short stopRight; + short stopLeft; + + +}; +#endif \ No newline at end of file