Roboshark / Mbed 2 deprecated Roboshark_V10

Dependencies:   mbed

Fork of Roboshark_V9 by Roboshark

Fahren.h

Committer:
ahlervin
Date:
2018-05-08
Revision:
10:fb2195d0de0f
Parent:
9:feabe0b7cea4
Child:
14:feafcee53fed

File content as of revision 10:fb2195d0de0f:

/*Roboshark V7
Fahren.h
Erstellt: J. Blunschi
geändert: V.Ahlers
V.5.18
*/


#ifndef FAHREN_H_
#define FAHREN_H_

#include <mbed.h>
#include "EncoderCounter.h"
#include "Controller.h"
#include "IRSensor.h"



class Fahren{
    
    public:    
    Fahren(Controller& controller, EncoderCounter& counterLeft, EncoderCounter& counterRight,IRSensor& iRSensor); //Konstruktor
    
    virtual ~Fahren();
    
    void geradeausG();
    void rechts90();
    void rechts180();
    void links90();
    void ziel();
    void stopp();                        
    
    
    private:
    Controller& controller;
    EncoderCounter& counterLeft;
    EncoderCounter& counterRight;
    IRSensor& iRSensor;
    Ticker ticker;
    void reset();

    
    //Variablen die in der Klasse Fahren verwendet werden
    double speedRight;
    double speedLeft;
    short initialClicksLeft;
    short initialClicksRight;
    short wegLinks;
    short wegRechts;
    short stopRight;
    short stopLeft;
    float SpeedR;
    float SpeedL;
    float disF;
    int reglerEinL;
    int reglerEinR;
    int reglerEin;
    static const float PERIOD;
   
    

};
#endif