3/26/16 12:25 am JJ
Dependents: steppertest R5 2016 Robotics Team 1
Fork of scanner by
Diff: scanner.h
- Revision:
- 11:c6152a32a104
- Parent:
- 10:6a630acaeadb
--- a/scanner.h Sat Mar 26 16:51:33 2016 +0000 +++ b/scanner.h Sat Mar 26 22:59:50 2016 +0000 @@ -22,8 +22,15 @@ 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; @@ -55,6 +62,7 @@ bool objectFound; bool localizeRightFlag; bool localizeLeftFlag; + bool yellowFlag; Ticker scanPit; // periodic interrupt timer