Library to calculate angles from positions and vice versa (also used for shooting angles)
Dependents: includeair includeair calcul_Ueff2 Mesure_energie
angleandposition.h@1:6cace9fdb088, 2015-10-19 (annotated)
- Committer:
- Gerth
- Date:
- Mon Oct 19 13:25:40 2015 +0000
- Revision:
- 1:6cace9fdb088
- Parent:
- 0:b8295c4b5793
- Child:
- 3:067c75c62882
added button control mode but desired position moves too much per second;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Gerth | 0:b8295c4b5793 | 1 | #ifndef _ANGLEANDPOSITION_H_ |
Gerth | 0:b8295c4b5793 | 2 | #define _ANGLEANDPOSITION_H_ |
Gerth | 0:b8295c4b5793 | 3 | |
Gerth | 0:b8295c4b5793 | 4 | #include "mbed.h" |
Gerth | 0:b8295c4b5793 | 5 | #include "math.h" |
Gerth | 0:b8295c4b5793 | 6 | |
Gerth | 0:b8295c4b5793 | 7 | class angleandposition |
Gerth | 0:b8295c4b5793 | 8 | { |
Gerth | 0:b8295c4b5793 | 9 | public: |
Gerth | 0:b8295c4b5793 | 10 | |
Gerth | 0:b8295c4b5793 | 11 | angleandposition(void); |
Gerth | 0:b8295c4b5793 | 12 | |
Gerth | 1:6cace9fdb088 | 13 | float positiontoangle1 (float x_position,float y_position); |
Gerth | 1:6cace9fdb088 | 14 | float positiontoangle2 (float x_position,float y_position); |
Gerth | 0:b8295c4b5793 | 15 | |
Gerth | 0:b8295c4b5793 | 16 | private: |
Gerth | 0:b8295c4b5793 | 17 | |
Gerth | 0:b8295c4b5793 | 18 | }; |
Gerth | 0:b8295c4b5793 | 19 | #endif |