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.
Dependencies: mbed
Fork of BeaconDemo_RobotCode by
beacon.h
- Committer:
- jah128
- Date:
- 2015-10-27
- Revision:
- 11:7b3ee540ba56
- Parent:
- 9:085e090e1ec1
File content as of revision 11:7b3ee540ba56:
/// PsiSwarm Beautiful Meme Project Source Code
/// Version 0.2
/// 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
