Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: includeair includeair calcul_Ueff2 Mesure_energie
angleandposition.h@0:b8295c4b5793, 2015-10-15 (annotated)
- Committer:
- Gerth
- Date:
- Thu Oct 15 11:19:39 2015 +0000
- Revision:
- 0:b8295c4b5793
- Child:
- 1:6cace9fdb088
library to calculate angles from positions and vice versa;
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 | 0:b8295c4b5793 | 13 | float positiontoangle1 (float x_position); |
Gerth | 0:b8295c4b5793 | 14 | float positiontoangle2 (float x_position); |
Gerth | 0:b8295c4b5793 | 15 | |
Gerth | 0:b8295c4b5793 | 16 | private: |
Gerth | 0:b8295c4b5793 | 17 | |
Gerth | 0:b8295c4b5793 | 18 | }; |
Gerth | 0:b8295c4b5793 | 19 | #endif |