![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
ft. button press reset
Fork of BeaconDemo_RobotCode by
Diff: main.h
- Revision:
- 11:7b3ee540ba56
- Parent:
- 10:1b09d4bb847b
- Child:
- 12:daa53285b6e4
--- a/main.h Mon Oct 26 23:58:08 2015 +0000 +++ b/main.h Tue Oct 27 00:13:49 2015 +0000 @@ -10,7 +10,7 @@ ***********************************************************************/ /// PsiSwarm Beautiful Meme Project Source Code -/// Version 0.1 +/// Version 0.2 /// James Hilder, Alan Millard, Homero Elizondo, Jon Timmis /// University of York @@ -21,7 +21,7 @@ #include "beacon.h" #include "programs.h" -// Define the on-period for a IR pulse in microseconds (eg 50000 for 2Hz system, 20000 for a 5Hz system) +// Define the on-period for a IR pulse in microseconds (eg 50000 for 2Hz system, 25000 for a 4Hz system or 20000 for a 5Hz system) #define BEACON_PERIOD 25000 extern char beacon_found; // This will be a 1 if beacon is detected, 0 if it isn't @@ -39,6 +39,9 @@ extern char prog_info [17]; extern char main_program_state; extern char program_changed; +extern float battery_low_threshold; +extern float battery_high_threshold; + char * get_program_name(int index); void set_program(int index); @@ -50,6 +53,7 @@ void user_code_setup(void); void user_code_loop(void); void handle_switch_event(char switch_state); + int main(void);