![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
for Infotag
Dependencies: Library_Cntrl Library_Misc
path_1d.h@5:768e10f6d372, 2021-02-25 (annotated)
- Committer:
- altb2
- Date:
- Thu Feb 25 20:28:45 2021 +0000
- Revision:
- 5:768e10f6d372
first commit of Mirror actuator
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
altb2 | 5:768e10f6d372 | 1 | #ifndef PATH_1D_H_ |
altb2 | 5:768e10f6d372 | 2 | #define PATH_1D_H_ |
altb2 | 5:768e10f6d372 | 3 | |
altb2 | 5:768e10f6d372 | 4 | |
altb2 | 5:768e10f6d372 | 5 | #include "mbed.h" |
altb2 | 5:768e10f6d372 | 6 | class path_1d{ |
altb2 | 5:768e10f6d372 | 7 | public: |
altb2 | 5:768e10f6d372 | 8 | path_1d(void); |
altb2 | 5:768e10f6d372 | 9 | virtual ~path_1d(); |
altb2 | 5:768e10f6d372 | 10 | void initialize(float,float,float,float,float,float); |
altb2 | 5:768e10f6d372 | 11 | void get_x_v(float,float *, float *); |
altb2 | 5:768e10f6d372 | 12 | void start(float); |
altb2 | 5:768e10f6d372 | 13 | bool finished; |
altb2 | 5:768e10f6d372 | 14 | bool started; |
altb2 | 5:768e10f6d372 | 15 | bool initialized; |
altb2 | 5:768e10f6d372 | 16 | |
altb2 | 5:768e10f6d372 | 17 | |
altb2 | 5:768e10f6d372 | 18 | private: |
altb2 | 5:768e10f6d372 | 19 | float dT; |
altb2 | 5:768e10f6d372 | 20 | float sig; |
altb2 | 5:768e10f6d372 | 21 | float T_end,T1,T2; |
altb2 | 5:768e10f6d372 | 22 | float X1,X2,X3; |
altb2 | 5:768e10f6d372 | 23 | float t_offset; |
altb2 | 5:768e10f6d372 | 24 | float a_max,v_max,s_end,v_0,s_0,s_start; |
altb2 | 5:768e10f6d372 | 25 | //----------------------------------- |
altb2 | 5:768e10f6d372 | 26 | |
altb2 | 5:768e10f6d372 | 27 | }; |
altb2 | 5:768e10f6d372 | 28 | |
altb2 | 5:768e10f6d372 | 29 | #endif |