Bluetooth communication for flocking.

Dependencies:   mbed

Fork of BeautifulMemeProject by James Hilder

Committer:
alanmillard
Date:
Sun Jan 31 15:14:54 2016 +0000
Revision:
27:7eb032772bc2
Parent:
12:daa53285b6e4
Flocking seems to work better now, however the robot controller sometimes "crashes" (unsure why).

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jah128 12:daa53285b6e4 1 #ifndef VECTOR_H
jah128 12:daa53285b6e4 2 #define VECTOR_H
jah128 12:daa53285b6e4 3
jah128 12:daa53285b6e4 4 #define TO_DEG 57.2958
jah128 12:daa53285b6e4 5 #define TO_RAD 0.017453
jah128 12:daa53285b6e4 6
jah128 12:daa53285b6e4 7 struct FloatVector{
jah128 12:daa53285b6e4 8 float angle;
jah128 12:daa53285b6e4 9 float distance;
jah128 12:daa53285b6e4 10 };
jah128 12:daa53285b6e4 11
jah128 12:daa53285b6e4 12 struct FloatVector addVector(struct FloatVector in_Vector, int angle, int distance);
jah128 12:daa53285b6e4 13
jah128 12:daa53285b6e4 14 #endif