James Wilson
/
PsiSwarm-BeaconDemo_Bluetooth
Stuff
Fork of PsiSwarm-flockingAddedBluetooth by
vector.h@19:b5788427db67, 2017-03-01 (annotated)
- Committer:
- JamesSW
- Date:
- Wed Mar 01 15:23:47 2017 +0000
- Revision:
- 19:b5788427db67
- Parent:
- 12:daa53285b6e4
untidy code for bluetooth;
Who changed what in which revision?
User | Revision | Line number | New 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 |