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
Revision 1:3396e2b3a62b, committed 2018-04-20
- Comitter:
- ahlervin
- Date:
- Fri Apr 20 09:16:34 2018 +0000
- Parent:
- 0:608fcd3255ca
- Commit message:
- Sensoren auslesen 2
Changed in this revision
| IRSensor.cpp | Show annotated file Show diff for this revision Revisions of this file |
| IRSensor.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/IRSensor.cpp Fri Apr 20 08:10:17 2018 +0000
+++ b/IRSensor.cpp Fri Apr 20 09:16:34 2018 +0000
@@ -26,7 +26,7 @@
// IR Sensor Right
-IRSensor::IRSensor(AnalogIn& IrRight, AnalogIn IrLeft, AnalogIn IrFront) : IrRight(IrRight), IrLeft(IrLeft), IrFront(IrFront){}
+IRSensor::IRSensor(AnalogIn& IrRight, AnalogIn& IrLeft, AnalogIn& IrFront) : IrRight(IrRight), IrLeft(IrLeft), IrFront(IrFront){}
IRSensor::~IRSensor(){}
--- a/IRSensor.h Fri Apr 20 08:10:17 2018 +0000
+++ b/IRSensor.h Fri Apr 20 09:16:34 2018 +0000
@@ -13,7 +13,7 @@
class IRSensor {
public:
- IRSensor(AnalogIn& IrRight, AnalogIn IrLeft, AnalogIn IrFront);
+ IRSensor(AnalogIn& IrRight, AnalogIn& IrLeft, AnalogIn& IrFront);
float disR;
float disL;