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.
Dependents: steppertest R5 2016 Robotics Team 1
Fork of scanner by
Diff: scanner.h
- Revision:
- 8:32a445ae1d72
- Parent:
- 7:52c4be3bfc1b
- Child:
- 9:bae63bc84829
- Child:
- 10:6a630acaeadb
--- a/scanner.h Sat Mar 26 05:09:29 2016 +0000
+++ b/scanner.h Sat Mar 26 05:26:17 2016 +0000
@@ -2,14 +2,14 @@
#define SCANNER_H
#include "mbed.h"
#include "LongRangeSensor.h"
-#include "VL6180x.h"
+#include "ShortRangeSensor.h"
#include "StepperDrive.h"
class Scanner
{
public:
Scanner(Serial &pc1, StepperDrive &_drive, PinName _servoL, PinName _servoR,
- VL6180x &_shortRangeL, VL6180x &_shortRangeR,
+ ShortRangeSensor &_shortRangeL, ShortRangeSensor &_shortRangeR,
LongRangeSensor &_longRangeL, LongRangeSensor &_longRangeR,
float _period = 0.2);
void huntMode();
@@ -44,8 +44,8 @@
StepperDrive &drive;
PwmOut servoL;
PwmOut servoR;
- VL6180x &shortRangeL;
- VL6180x &shortRangeR;
+ ShortRangeSensor &shortRangeL;
+ ShortRangeSensor &shortRangeR;
LongRangeSensor &longRangeL;
LongRangeSensor &longRangeR;
float period;
