Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed Servo PinDetect
open.h
00001 /* 00002 * Authors: Group 4 Adam Elghor, Brian Kaplan, Sayak Chatterjee, Moraa Onwonga 00003 * Purpose: Controls the OPEN state of the machine 00004 * Language: C++ 00005 */ 00006 /* 00007 * Function: open 00008 * -------------------- 00009 * Calls the functions needed to for the open state 00010 * 00011 * 00012 * returns: the next state in the state machine 00013 * LOCK: if closed properly 00014 * ALARM: if cup is not found after searching in a full circle 00015 * 00016 */ 00017 enum states open(); 00018 00019 /* 00020 * Function: authenticate 00021 * ---------------------------- 00022 * Checks whether a cup was found through the sonar sensor 00023 * 00024 * returns: true if cup found else false 00025 */ 00026 bool authenticateOpen(); 00027 00028
Generated on Thu Jul 14 2022 04:06:30 by
1.7.2