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.
Fork of Pi_Swarm_Blank by
main.h@6:66e1a4c974dd, 2014-06-11 (annotated)
- Committer:
- edgarbuchanan
- Date:
- Wed Jun 11 13:50:09 2014 +0000
- Revision:
- 6:66e1a4c974dd
- Parent:
- 4:823174be9a6b
- Child:
- 8:a789ef4fde52
Flock code
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jah128 | 2:e806b595f9ce | 1 | /******************************************************************************************* |
jah128 | 2:e806b595f9ce | 2 | * |
jah128 | 2:e806b595f9ce | 3 | * University of York Robot Lab Pi Swarm Robot Library |
jah128 | 1:37502eb3b70f | 4 | * |
jah128 | 1:37502eb3b70f | 5 | * (C) Dr James Hilder, Dept. Electronics & Computer Science, University of York |
jah128 | 1:37502eb3b70f | 6 | * |
jah128 | 4:823174be9a6b | 7 | * Version 0.6 February 2014 |
jah128 | 1:37502eb3b70f | 8 | * |
jah128 | 2:e806b595f9ce | 9 | * Designed for use with the Pi Swarm Board (enhanced MBED sensor board) v1.2 |
jah128 | 1:37502eb3b70f | 10 | * |
jah128 | 2:e806b595f9ce | 11 | ******************************************************************************************/ |
jah128 | 1:37502eb3b70f | 12 | |
jah128 | 1:37502eb3b70f | 13 | #ifndef MAIN_H |
jah128 | 1:37502eb3b70f | 14 | #define MAIN_H |
jah128 | 1:37502eb3b70f | 15 | |
jah128 | 1:37502eb3b70f | 16 | #include "piswarm.h" |
jah128 | 1:37502eb3b70f | 17 | |
jah128 | 1:37502eb3b70f | 18 | void handleUserRFCommand(char * data, char length); |
jah128 | 1:37502eb3b70f | 19 | void handleUserRFCommand(char sender, char broadcast_message, char request_response, char id, char is_command, char function, char * data, char length); |
jah128 | 1:37502eb3b70f | 20 | void handleUserRFResponse(char sender, char broadcast_message, char request_response, char id, char is_command, char function, char * data, char length); |
jah128 | 1:37502eb3b70f | 21 | void processRawRFData(char * rstring, char cCount); |
jah128 | 1:37502eb3b70f | 22 | void switch_pressed ( void ); |
jah128 | 1:37502eb3b70f | 23 | |
edgarbuchanan | 6:66e1a4c974dd | 24 | //This function collects all outer IR sensors information and store them in an array. |
edgarbuchanan | 6:66e1a4c974dd | 25 | void get_sensors_values( void ); |
edgarbuchanan | 6:66e1a4c974dd | 26 | void attraction(void); |
edgarbuchanan | 6:66e1a4c974dd | 27 | |
jah128 | 1:37502eb3b70f | 28 | #endif //MAIN_H |