3/26/16 12:25 am JJ

Dependents:   steppertest R5 2016 Robotics Team 1

Fork of scanner by David Vasquez

Revision:
12:514544a4014f
Parent:
9:bae63bc84829
Child:
14:d327852dafd1
--- a/scanner.h	Sat Mar 26 23:01:49 2016 +0000
+++ b/scanner.h	Sat Mar 26 23:21:13 2016 +0000
@@ -24,8 +24,14 @@
     float getDistRight() {return distRight;}
     float getDistForwardL() {return distForwardL;}
     float getDistForwardR() {return distForwardR;}
+    void setLocalizeRightFlag(bool value) {localizeRightFlag = value;}
+    void setLocalizeLeftFlag(bool value) {localizeLeftFlag = value;}
+    bool getYellowFlag() {return yellowFlag;}
+    bool getObjectFound() {return objectFound;}
 
 private:
+    static const int YELLOW = 1;
+    static const int RED = 0;
     static const int MIN_DUTY = 0;
     static const int MAX_DUTY = 6;
     static const int HALF_DUTY = 3;
@@ -50,11 +56,15 @@
     ShortRangeSensor &shortRangeR;
     LongRangeSensor &longRangeL;
     LongRangeSensor &longRangeR;
+    Gripper &robotGrip;
     float period;
     bool obstacle;
     bool huntFlag;
     bool avoidFlag; 
     bool objectFound;
+    bool localizeRightFlag;
+    bool localizeLeftFlag;
+    bool yellowFlag;
     
     struct huntMove
     {