kh

Dependencies:   mbed PinDetect Servo

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers lock.h Source File

lock.h

00001 /*
00002 * Authors: Group 4 Adam Elghor, Brian Kaplan, Sayak Chatterjee, Moraa Onwonga
00003 * Purpose: Controls the LOCK state of the machine
00004 * Language: C
00005 */
00006 
00007 /*
00008 * Function:  lock
00009 * --------------------
00010 *  Locks safe
00011 *
00012 *  returns: the next state in the state machine
00013 *  Open: After it has been locked
00014 *
00015 */
00016 enum states lock();
00017 
00018 /*
00019 * Function: authenticate
00020 * ----------------------------
00021 *  Checks whether a cup was found through the sonar sensor
00022 *
00023 *  returns: true if cup found else false
00024 */
00025 bool authenticateLock();
00026