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
- Committer:
- re633
- Date:
- 2015-07-22
- Revision:
- 9:ef0907fda2f1
File content as of revision 9:ef0907fda2f1:
/*******************************************************************************************
*
* University of York PRGP 2015
*
* Robert Evans, Dept. Electronics & Computer Science, University of York
*
* Version 1 17 July 2015
*
* Ground controller version 1 for Pi Swarm as part of PRGP
*
******************************************************************************************/
#include "main.h"
#ifndef PISWARMCONTROLLERFUNCTIONS_H
#define PISWARMCONTROLLERFUNCTIONS_H
void changeState(uint8_t newState);
float randToLevy(uint16_t randomNumber);
uint32_t levyDistToTime(float distance);
void turnDegrees(int16_t degrees);
void calculateNewHeading();
int16_t mod16 (int16_t a,int16_t b);
int8_t mod8 (int8_t a,int8_t b);
#endif //PISWARMCONTROLLERFUNCTIONS_H
