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.
Fork of BeautifulMemeProject by
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
Generated on Fri Jul 15 2022 08:26:10 by
1.7.2
