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 MicroMouse_MASTER_FOUR by
CheckWalls.h
00001 #ifndef CHECKWALLS_H_ 00002 #define CHECKWALLS_H_ 00003 00004 #include <cstdlib> 00005 #include <mbed.h> 00006 #include "IRSensor.h" 00007 00008 class CheckWalls 00009 { 00010 00011 public: 00012 //IRSensor(AnalogIn& distance, DigitalOut& bit0, DigitalOut& bit1, DigitalOut& bit2, int number); 00013 CheckWalls(IRSensor& irSensor0, IRSensor& irSensor1, IRSensor& irSensor2, int& wallRight, int& wallFront, int& wallLeft); 00014 virtual ~CheckWalls(); 00015 void check(); 00016 00017 00018 private: 00019 00020 static const float WALL_DISTANCE; 00021 00022 IRSensor& irSensor0; 00023 IRSensor& irSensor1; 00024 IRSensor& irSensor2; 00025 00026 int& wallRight; 00027 int& wallFront; 00028 int& wallLeft; 00029 00030 }; 00031 00032 #endif /* CHECKWALLS */
Generated on Wed Jul 20 2022 03:14:21 by
1.7.2
