Psi Swarm Code V0.41 [With Beautiful Meme program]
Dependencies: PsiSwarmLibrary mbed
Fork of BeautifulMemeProjectBT by
beacon.h@29:9756004e8499, 2016-03-03 (annotated)
- Committer:
- jah128
- Date:
- Thu Mar 03 23:22:01 2016 +0000
- Revision:
- 29:9756004e8499
- Parent:
- 28:46d650381972
V4 Library
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 | 28:46d650381972 | 2 | /// Version 0.4 |
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 |