Example code for the UKESF Headstart robotics lab; code to make the PsiSwarm robot move forward and turn.
Dependencies: PsiSwarm-Headstart mbed
Fork of PsiSwarm_V41 by
BeautifulMeme/beacon.h
- Committer:
- jah128
- Date:
- 2016-03-15
- Revision:
- 30:513457c1ad12
File content as of revision 30:513457c1ad12:
/// PsiSwarm Beautiful Meme Project Source Code /// Version 0.41 /// James Hilder, Alan Millard, Homero Elizondo, Jon Timmis /// University of York // beacon.h - Functions for detecting the beacon and taking IR readings of the robots #ifndef BEACON_H #define BEACON_H void emitter_ticker_block(void); void sample_ticker_block(void); void emitter_timeout_block(void); void locate_beacon(void); void start_infrared_timers(void); unsigned short get_highest_sample(unsigned short * ir_array); unsigned short get_sum_sample(unsigned short * ir_array); char turn_to_bearing(int bearing); #endif