kh

Dependencies:   mbed PinDetect Servo

lock.h

Committer:
Sayak97
Date:
5 months ago
Revision:
3:2f7a7e2cd49e
Parent:
2:04bbd14722bd

File content as of revision 3:2f7a7e2cd49e:

/*
* Authors: Group 4 Adam Elghor, Brian Kaplan, Sayak Chatterjee, Moraa Onwonga
* Purpose: Controls the LOCK state of the machine
* Language: C
*/

/*
* Function:  lock
* --------------------
*  Locks safe
*
*  returns: the next state in the state machine
*  Open: After it has been locked
*
*/
enum states lock();

/*
* Function: authenticate
* ----------------------------
*  Checks whether a cup was found through the sonar sensor
*
*  returns: true if cup found else false
*/
bool authenticateLock();