3/26/16 12:25 am JJ
Dependents: steppertest R5 2016 Robotics Team 1
Fork of scanner by
Diff: scanner.h
- Revision:
- 16:4e76b53cdef2
- Parent:
- 14:d327852dafd1
--- a/scanner.h Fri Apr 01 17:25:02 2016 +0000 +++ b/scanner.h Fri Apr 01 22:21:27 2016 +0000 @@ -2,18 +2,15 @@ #define SCANNER_H #include "mbed.h" #include "LongRangeSensor.h" -#include "ShortRangeSensor.h" #include "StepperDrive.h" -#include "Gripper.h" #include <stack> class Scanner { public: - Scanner(Serial &pc1, StepperDrive &_drive, PinName _servoL, PinName _servoR, - ShortRangeSensor &_shortRangeL, ShortRangeSensor &_shortRangeR, + Scanner(Serial &pc1, StepperDrive &_drive, PinName _servoL, PinName _servoR, LongRangeSensor &_longRangeL, LongRangeSensor &_longRangeR, - Gripper &_robotGrip, float _period = 0.2); + float _period = 0.2); void huntMode(); void hunt(); void avoidMode(); @@ -54,11 +51,8 @@ StepperDrive &drive; PwmOut servoL; PwmOut servoR; - ShortRangeSensor &shortRangeL; - ShortRangeSensor &shortRangeR; LongRangeSensor &longRangeL; LongRangeSensor &longRangeR; - Gripper &robotGrip; float period; bool obstacle; bool huntFlag;