Roboshark / Mbed 2 deprecated SensorsTest3

Dependencies:   mbed

Files at this revision

API Documentation at this revision

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;