Dependencies: PinDetect mbed Servo
definitions.h
- Committer:
- Rufaida
- Date:
- 2012-06-18
- Revision:
- 0:81f78497df4e
File content as of revision 0:81f78497df4e:
#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