Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of Roboshark_V8 by
Fahren.h
- Committer:
- ahlervin
- Date:
- 2018-05-07
- Revision:
- 9:feabe0b7cea4
- Parent:
- 8:d0a27278c108
- Child:
- 10:fb2195d0de0f
File content as of revision 9:feabe0b7cea4:
/*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;
//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;
};
#endif
