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.
Diff: IRSensor.cpp
- Revision:
- 29:0419f4873807
- Parent:
- 21:41997651337a
--- a/IRSensor.cpp Thu May 17 16:39:03 2018 +0000
+++ b/IRSensor.cpp Fri May 18 09:30:00 2018 +0000
@@ -24,8 +24,9 @@
}
float IRSensor::readC(){
- //Vorne B4
- float d4 = 28.053f*(1.0f/distance);
+ //Vorne B3
+ //float d4 = 28.053f*(1.0f/distance);
+ float d4 = 32.887f*(1/(pow(distance,1.038422f)));
return d4;
}
