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: PinDetect mbed Servo
Diff: definitions.h
- Revision:
- 0:81f78497df4e
diff -r 000000000000 -r 81f78497df4e definitions.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/definitions.h	Mon Jun 18 17:47:17 2012 +0000
@@ -0,0 +1,55 @@
+#include "mbed.h"
+/*including files needed*/
+extern int Level;
+extern int LED_Pos;
+extern int sample_count;
+extern int load;
+extern int unload;
+extern float current_sp;
+extern float sp_incr;
+extern int time_incr;
+/*defining different speeds of the motor*/
+#define up_full 1.0
+#define up_slow 0.6
+#define stopped 0.5
+#define down_slow 0.4
+#define down_full 0.0
+
+
+#ifndef STATES
+#define STATES
+
+/*This is the list of the states*/
+enum states {
+    st_At_Top_Closed,
+    st_Going_Bottom,
+    st_Wait_For_Bottom,
+    st_Wait_For_Ding_Bottom,
+    st_Wait_For_door_Bottom,
+    st_At_Bottom_Closed,
+    st_Going_Up,
+    st_Wait_For_Top,
+    st_Wait_For_Ding_Top,
+    st_Wait_For_door_Top,
+    st_Wait_For_Safety,
+    st_Wait_For_Bottom_Floor,
+    MAX_STATES
+};
+
+
+/*This is the list of the events*/
+enum events {
+    ev_Go_To_Bottom_Button,
+    ev_Go_To_Top_Button,
+    ev_Bottom_Call_Button,
+    ev_Top_Call_Button,
+    ev_Near_Top_Button,
+    ev_Near_Bottom_Button ,
+    ev_Top_Button,
+    ev_Bottom_Button,
+    ev_Timeout,
+    ev_Safety,
+    ev_loading_event,
+    MAX_EVENTS
+};
+#endif
\ No newline at end of file