![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
ft. button press reset
Fork of BeaconDemo_RobotCode by
beacon.h@23:fd0f0931768a, 2017-03-13 (annotated)
- Committer:
- jhok500
- Date:
- Mon Mar 13 10:07:07 2017 +0000
- Revision:
- 23:fd0f0931768a
- Parent:
- 11:7b3ee540ba56
ft. reset button press
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jah128 | 6:ff3c66f7372b | 1 | /// PsiSwarm Beautiful Meme Project Source Code |
jah128 | 11:7b3ee540ba56 | 2 | /// Version 0.2 |
jah128 | 6:ff3c66f7372b | 3 | /// James Hilder, Alan Millard, Homero Elizondo, Jon Timmis |
jah128 | 6:ff3c66f7372b | 4 | /// University of York |
jah128 | 6:ff3c66f7372b | 5 | |
jah128 | 11:7b3ee540ba56 | 6 | // beacon.h - Functions for detecting the beacon and taking IR readings of the robots |
jah128 | 11:7b3ee540ba56 | 7 | |
jah128 | 6:ff3c66f7372b | 8 | #ifndef BEACON_H |
jah128 | 6:ff3c66f7372b | 9 | #define BEACON_H |
jah128 | 6:ff3c66f7372b | 10 | |
jah128 | 6:ff3c66f7372b | 11 | void emitter_ticker_block(void); |
jah128 | 6:ff3c66f7372b | 12 | void sample_ticker_block(void); |
jah128 | 6:ff3c66f7372b | 13 | void emitter_timeout_block(void); |
jah128 | 6:ff3c66f7372b | 14 | void locate_beacon(void); |
jah128 | 6:ff3c66f7372b | 15 | void start_infrared_timers(void); |
jah128 | 6:ff3c66f7372b | 16 | unsigned short get_highest_sample(unsigned short * ir_array); |
jah128 | 6:ff3c66f7372b | 17 | unsigned short get_sum_sample(unsigned short * ir_array); |
jah128 | 9:085e090e1ec1 | 18 | char turn_to_bearing(int bearing); |
jah128 | 6:ff3c66f7372b | 19 | |
jah128 | 6:ff3c66f7372b | 20 | #endif |