ft. button press reset
Dependencies: mbed
Fork of BeaconDemo_RobotCodeNew by
vector.h@24:d98c6e733dd6, 2017-03-13 (annotated)
- Committer:
- jhok500
- Date:
- Mon Mar 13 11:28:57 2017 +0000
- Revision:
- 24:d98c6e733dd6
- Parent:
- 12:daa53285b6e4
11:28 13/03
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 |