ft. button press reset

Dependencies:   mbed

Fork of BeaconDemo_RobotCode by Science Memeseum

beacon.h

Committer:
jhok500
Date:
2017-03-13
Revision:
23:fd0f0931768a
Parent:
11:7b3ee540ba56

File content as of revision 23:fd0f0931768a:

/// 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