kh
Dependencies: mbed PinDetect Servo
open.h@1:2c365f6da61d, 2018-11-10 (annotated)
- Committer:
- Sayak97
- Date:
- Sat Nov 10 20:08:46 2018 +0000
- Revision:
- 1:2c365f6da61d
- Parent:
- 0:28e05e1a3d1e
- Child:
- 2:04bbd14722bd
hjughj'; \; \;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Sayak97 | 1:2c365f6da61d | 1 | /* |
Sayak97 | 1:2c365f6da61d | 2 | * Authors: Group 4 Adam Elghor, Brian Kaplan, Sayak Chatterjee, Moraa Onwonga |
Sayak97 | 1:2c365f6da61d | 3 | * Purpose: Controls the OPEN state of the machine |
Sayak97 | 1:2c365f6da61d | 4 | * Language: C |
Sayak97 | 1:2c365f6da61d | 5 | */ |
Sayak97 | 1:2c365f6da61d | 6 | /* |
Sayak97 | 1:2c365f6da61d | 7 | * Function: OPEN |
Sayak97 | 1:2c365f6da61d | 8 | * -------------------- |
Sayak97 | 1:2c365f6da61d | 9 | * Calls the functions needed to for the open state |
Sayak97 | 1:2c365f6da61d | 10 | * |
Sayak97 | 1:2c365f6da61d | 11 | * |
Sayak97 | 1:2c365f6da61d | 12 | * returns: the next state in the state machine |
Sayak97 | 1:2c365f6da61d | 13 | * LOCK: if closed properly |
Sayak97 | 1:2c365f6da61d | 14 | * ALARM: if cup is not found after searching in a full circle |
Sayak97 | 1:2c365f6da61d | 15 | * |
Sayak97 | 1:2c365f6da61d | 16 | */ |
Sayak97 | 1:2c365f6da61d | 17 | enum states open(); |
Sayak97 | 0:28e05e1a3d1e | 18 | |
Sayak97 | 1:2c365f6da61d | 19 | /* |
Sayak97 | 1:2c365f6da61d | 20 | * Function: authenticate |
Sayak97 | 1:2c365f6da61d | 21 | * ---------------------------- |
Sayak97 | 1:2c365f6da61d | 22 | * Checks whether a cup was found through the sonar sensor |
Sayak97 | 1:2c365f6da61d | 23 | * |
Sayak97 | 1:2c365f6da61d | 24 | * returns: true if cup found else false |
Sayak97 | 1:2c365f6da61d | 25 | */ |
Sayak97 | 1:2c365f6da61d | 26 | bool authenticateOpen(); |
Sayak97 | 1:2c365f6da61d | 27 |