James O'Keeffe
/
BeaconDemo_RobotCodeNew
ft. button press reset
Fork of BeaconDemo_RobotCode by
Diff: main.h
- Revision:
- 6:ff3c66f7372b
- Parent:
- 0:8a5497a2e366
- Child:
- 7:ef9ab01b9e26
diff -r 598298aa4900 -r ff3c66f7372b main.h --- a/main.h Tue Oct 13 11:47:14 2015 +0000 +++ b/main.h Thu Oct 22 00:46:14 2015 +0000 @@ -9,7 +9,31 @@ **(C) Dr James Hilder - York Robotics Laboratory - University of York ** ***********************************************************************/ +/// PsiSwarm Beautiful Meme Project Source Code +/// Version 0.1 +/// James Hilder, Alan Millard, Homero Elizondo, Jon Timmis +/// University of York + +#ifndef MAIN_H +#define MAIN_H + +#include "beacon.h" + +extern char beacon_found; // This will be a 1 if beacon is detected, 0 if it isn't +extern int beacon_heading; // The heading from the last time the beacon was detected +extern char robots_found[8]; // These will be a 1 when the respective robot [excluding self] was detected during the previous 500ms window +extern char robots_heading[8]; // These are the headings from the last time the respective robots were detected +extern unsigned short robots_distance[8]; // This is the maximum sensor value from the last time the respective robot was detected +extern unsigned short reflected_sensor_data[8]; // The reflected IR values when this robots emitters are on +extern unsigned short background_sensor_data[8];// The raw IR values when no robot (or beacon) should have its IR on + void user_code_setup(void); void user_code_loop(void); void handle_switch_event(char switch_state); -int main(void); \ No newline at end of file +int main(void); + + +void display_ir_readings(void); +void out(const char* format, ...) ; + +#endif \ No newline at end of file