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_V6 by
Regler.h
00001 /*Roboshark V5 00002 Regler.h 00003 Erstellt: V.Ahlers 00004 geändert: V.Ahlers 00005 V.5.18 00006 */ 00007 00008 #ifndef REGLER_H_ 00009 #define REGLER_H_ 00010 00011 #include <cstdlib> 00012 #include <mbed.h> 00013 #include "IRSensor.h" 00014 00015 class Regler{ 00016 00017 public: 00018 Regler(AnalogIn& IrRight, AnalogIn& IrLeft, IRSensor& iRSensor); //Konstruktor 00019 00020 virtual ~Regler(); 00021 00022 00023 float getSpeedR(); 00024 float getSpeedL(); 00025 00026 private: 00027 AnalogIn& IrRight; 00028 AnalogIn& IrLeft; 00029 IRSensor& iRSensor; 00030 static const int FIXSPEED; 00031 static const float PERIOD; 00032 float SpeedR; 00033 float SpeedL; 00034 float measR2; 00035 float measL2; 00036 float div1; 00037 float div2; 00038 float div3; 00039 float div4; 00040 float div5; 00041 float div6; 00042 float kor1; 00043 float kor2; 00044 float kor3; 00045 float kor4; 00046 float kor5; 00047 float kor6; 00048 float faktor; 00049 00050 00051 void setSpeed(); 00052 Ticker ticker; 00053 00054 }; 00055 #endif
Generated on Tue Jul 19 2022 22:37:51 by
1.7.2
