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.
Dependencies: mbed
PositionSetter.h@0:a4ad8cb94c43, 2015-11-12 (annotated)
- Committer:
- wanchp
- Date:
- Thu Nov 12 03:53:37 2015 +0000
- Revision:
- 0:a4ad8cb94c43
example
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
wanchp | 0:a4ad8cb94c43 | 1 | #include "mbed.h" |
wanchp | 0:a4ad8cb94c43 | 2 | typedef float Degree; |
wanchp | 0:a4ad8cb94c43 | 3 | typedef float Time; |
wanchp | 0:a4ad8cb94c43 | 4 | struct Cartesian {float x, y,z;}; |
wanchp | 0:a4ad8cb94c43 | 5 | |
wanchp | 0:a4ad8cb94c43 | 6 | class PositionSetter { |
wanchp | 0:a4ad8cb94c43 | 7 | uint16_t NofAxes; |
wanchp | 0:a4ad8cb94c43 | 8 | uint32_t NofPositions; |
wanchp | 0:a4ad8cb94c43 | 9 | Degree **Position; |
wanchp | 0:a4ad8cb94c43 | 10 | Time *Duration; |
wanchp | 0:a4ad8cb94c43 | 11 | bool *Write; |
wanchp | 0:a4ad8cb94c43 | 12 | int cursor; |
wanchp | 0:a4ad8cb94c43 | 13 | public: |
wanchp | 0:a4ad8cb94c43 | 14 | PositionSetter(); |
wanchp | 0:a4ad8cb94c43 | 15 | PositionSetter(Degree **); |
wanchp | 0:a4ad8cb94c43 | 16 | Degree ReadCurrentPosition(uint16_t AxisNo); |
wanchp | 0:a4ad8cb94c43 | 17 | Degree* ReadCurrentPosition(void); |
wanchp | 0:a4ad8cb94c43 | 18 | Degree ReadNextPosition(uint16_t AxisNo); |
wanchp | 0:a4ad8cb94c43 | 19 | Degree* ReadNextPosition(void); |
wanchp | 0:a4ad8cb94c43 | 20 | }; |