Science Memeseum / Mbed 2 deprecated BeaconDemo_RobotCode

Dependencies:   mbed

Fork of PsiSwarm-BeaconDemo_Bluetooth by James Wilson

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers beacon.h Source File

beacon.h

00001 /// PsiSwarm Beautiful Meme Project Source Code
00002 /// Version 0.2
00003 /// James Hilder, Alan Millard, Homero Elizondo, Jon Timmis
00004 /// University of York
00005 
00006 // beacon.h - Functions for detecting the beacon and taking IR readings of the robots
00007 
00008 #ifndef BEACON_H
00009 #define BEACON_H
00010 
00011 void emitter_ticker_block(void);
00012 void sample_ticker_block(void);
00013 void emitter_timeout_block(void);
00014 void locate_beacon(void);
00015 void start_infrared_timers(void);
00016 unsigned short get_highest_sample(unsigned short * ir_array);
00017 unsigned short get_sum_sample(unsigned short * ir_array);
00018 char turn_to_bearing(int bearing);
00019 
00020 #endif