![](/media/cache/profiles/altb_JGUSAOG.jpg.50x50_q85.jpg)
Mirror actuator for RT2 lab
Library_Cntrl/PRBS.h@12:8ea956a5c1d8, 2021-04-28 (annotated)
- Committer:
- altb2
- Date:
- Wed Apr 28 13:10:16 2021 +0000
- Revision:
- 12:8ea956a5c1d8
Template for students
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
altb2 | 12:8ea956a5c1d8 | 1 | class PRBS |
altb2 | 12:8ea956a5c1d8 | 2 | { |
altb2 | 12:8ea956a5c1d8 | 3 | public: |
altb2 | 12:8ea956a5c1d8 | 4 | |
altb2 | 12:8ea956a5c1d8 | 5 | PRBS(int n); |
altb2 | 12:8ea956a5c1d8 | 6 | |
altb2 | 12:8ea956a5c1d8 | 7 | float operator()() { |
altb2 | 12:8ea956a5c1d8 | 8 | return update(); |
altb2 | 12:8ea956a5c1d8 | 9 | } |
altb2 | 12:8ea956a5c1d8 | 10 | |
altb2 | 12:8ea956a5c1d8 | 11 | virtual ~PRBS(); |
altb2 | 12:8ea956a5c1d8 | 12 | |
altb2 | 12:8ea956a5c1d8 | 13 | void reset(); |
altb2 | 12:8ea956a5c1d8 | 14 | float update(); |
altb2 | 12:8ea956a5c1d8 | 15 | |
altb2 | 12:8ea956a5c1d8 | 16 | void printPRBSind(); |
altb2 | 12:8ea956a5c1d8 | 17 | void printPRBSregister(); |
altb2 | 12:8ea956a5c1d8 | 18 | |
altb2 | 12:8ea956a5c1d8 | 19 | private: |
altb2 | 12:8ea956a5c1d8 | 20 | |
altb2 | 12:8ea956a5c1d8 | 21 | int ii; |
altb2 | 12:8ea956a5c1d8 | 22 | int n; |
altb2 | 12:8ea956a5c1d8 | 23 | int Nprbs; |
altb2 | 12:8ea956a5c1d8 | 24 | int *Register; |
altb2 | 12:8ea956a5c1d8 | 25 | int Nind; |
altb2 | 12:8ea956a5c1d8 | 26 | int *ind; |
altb2 | 12:8ea956a5c1d8 | 27 | |
altb2 | 12:8ea956a5c1d8 | 28 | void getPrbsIndex(int n); |
altb2 | 12:8ea956a5c1d8 | 29 | void printLine(); |
altb2 | 12:8ea956a5c1d8 | 30 | |
altb2 | 12:8ea956a5c1d8 | 31 | }; |