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
PiSwarmControllerFunctions.h@9:ef0907fda2f1, 2015-07-22 (annotated)
- Committer:
- re633
- Date:
- Wed Jul 22 15:49:52 2015 +0000
- Revision:
- 9:ef0907fda2f1
Author R Evans; Initial code creation.; Basic search algorithm implemented.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| re633 | 9:ef0907fda2f1 | 1 | /******************************************************************************************* |
| re633 | 9:ef0907fda2f1 | 2 | * |
| re633 | 9:ef0907fda2f1 | 3 | * University of York PRGP 2015 |
| re633 | 9:ef0907fda2f1 | 4 | * |
| re633 | 9:ef0907fda2f1 | 5 | * Robert Evans, Dept. Electronics & Computer Science, University of York |
| re633 | 9:ef0907fda2f1 | 6 | * |
| re633 | 9:ef0907fda2f1 | 7 | * Version 1 17 July 2015 |
| re633 | 9:ef0907fda2f1 | 8 | * |
| re633 | 9:ef0907fda2f1 | 9 | * Ground controller version 1 for Pi Swarm as part of PRGP |
| re633 | 9:ef0907fda2f1 | 10 | * |
| re633 | 9:ef0907fda2f1 | 11 | ******************************************************************************************/ |
| re633 | 9:ef0907fda2f1 | 12 | #include "main.h" |
| re633 | 9:ef0907fda2f1 | 13 | #ifndef PISWARMCONTROLLERFUNCTIONS_H |
| re633 | 9:ef0907fda2f1 | 14 | #define PISWARMCONTROLLERFUNCTIONS_H |
| re633 | 9:ef0907fda2f1 | 15 | |
| re633 | 9:ef0907fda2f1 | 16 | void changeState(uint8_t newState); |
| re633 | 9:ef0907fda2f1 | 17 | float randToLevy(uint16_t randomNumber); |
| re633 | 9:ef0907fda2f1 | 18 | uint32_t levyDistToTime(float distance); |
| re633 | 9:ef0907fda2f1 | 19 | void turnDegrees(int16_t degrees); |
| re633 | 9:ef0907fda2f1 | 20 | void calculateNewHeading(); |
| re633 | 9:ef0907fda2f1 | 21 | int16_t mod16 (int16_t a,int16_t b); |
| re633 | 9:ef0907fda2f1 | 22 | int8_t mod8 (int8_t a,int8_t b); |
| re633 | 9:ef0907fda2f1 | 23 | #endif //PISWARMCONTROLLERFUNCTIONS_H |
