I messed up the merge, so pushing it over to another repo so I don't lose it. Will tidy up and remove later
Dependencies: BufferedSerial FatFileSystemCpp mbed
position.h@0:97661408d0f9, 2021-01-15 (annotated)
- Committer:
- AndyA
- Date:
- Fri Jan 15 11:49:01 2021 +0000
- Revision:
- 0:97661408d0f9
- Child:
- 2:a79201e302d7
first;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AndyA | 0:97661408d0f9 | 1 | #pragma once |
AndyA | 0:97661408d0f9 | 2 | #include "mbed.h" |
AndyA | 0:97661408d0f9 | 3 | |
AndyA | 0:97661408d0f9 | 4 | class position { |
AndyA | 0:97661408d0f9 | 5 | public: |
AndyA | 0:97661408d0f9 | 6 | position(); |
AndyA | 0:97661408d0f9 | 7 | |
AndyA | 0:97661408d0f9 | 8 | uint32_t time; |
AndyA | 0:97661408d0f9 | 9 | double X; |
AndyA | 0:97661408d0f9 | 10 | double Y; |
AndyA | 0:97661408d0f9 | 11 | float Height; |
AndyA | 0:97661408d0f9 | 12 | float roll; |
AndyA | 0:97661408d0f9 | 13 | float pitch; |
AndyA | 0:97661408d0f9 | 14 | float yaw; |
AndyA | 0:97661408d0f9 | 15 | |
AndyA | 0:97661408d0f9 | 16 | static bool interp(position* output, position *pos1, position *pos2); |
AndyA | 0:97661408d0f9 | 17 | static float interpAngle(float value1, float weight1, float value2, float weight2); |
AndyA | 0:97661408d0f9 | 18 | |
AndyA | 0:97661408d0f9 | 19 | }; |
AndyA | 0:97661408d0f9 | 20 |