Pathfinding nach rechts funktioniert noch nicht...der rest schon

Dependencies:   mbed

Fork of MicroMouse_MASTER_THREE by PES2_R2D2.0

Turn.h

Committer:
ruesipat
Date:
2018-05-16
Revision:
9:ab19796bf14a
Parent:
8:1c8a747c49c8

File content as of revision 9:ab19796bf14a:

#ifndef TURN_H_
#define TURN_H_

#include <cstdlib>
#include <mbed.h>
#include "EncoderCounter.h"
#include "LowpassFilter.h"
#include "Controller.h"

class Turn
{

public:

    Turn(EncoderCounter& counterLeft, EncoderCounter& counterRight, Controller& controller, int& wallRight, int& wallFront, int& wallLeft, int& dontStop, int& modeStart,int& path);
    
    virtual ~Turn();
    void turning();

    
    
    
private:

    static const float TURNINGSPEED;
    static const int TURNINGCOUNTS;

    EncoderCounter&    counterLeft;
    EncoderCounter&    counterRight;
    Controller& controller;
    int& wallRight;
    int& wallFront;
    int& wallLeft;
    int& dontStop;
    int& modeStart;
    int& path;
    
};

#endif /* TURN_H_ */