Example code for the UKESF Headstart robotics lab; code to make the PsiSwarm robot move forward and turn.
Dependencies: PsiSwarm-Headstart mbed
Fork of PsiSwarm_V41 by
Diff: BeautifulMeme/vector.h
- Revision:
- 31:7fa2c47d73a2
- Parent:
- 30:513457c1ad12
--- a/BeautifulMeme/vector.h Tue Mar 15 00:58:43 2016 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,21 +0,0 @@ -/// PsiSwarm Beautiful Meme Project Source Code -/// Version 0.41 -/// James Hilder, Alan Millard, Homero Elizondo, Jon Timmis -/// University of York - -// vector.h - Functions for calculating floating point bearing vectors - -#ifndef VECTOR_H -#define VECTOR_H - -#define TO_DEG 57.2958 -#define TO_RAD 0.017453 - -struct FloatVector{ - float angle; - float distance; -}; - -struct FloatVector addVector(struct FloatVector in_Vector, int angle, int distance); - -#endif \ No newline at end of file