ft. button press reset
Dependencies: mbed
Fork of BeaconDemo_RobotCodeNew by
vector.h@12:daa53285b6e4, 2015-10-27 (annotated)
- Committer:
- jah128
- Date:
- Tue Oct 27 13:03:10 2015 +0000
- Revision:
- 12:daa53285b6e4
Add attraction dance
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 |