2nd Library
Dependents: cuboid_balance_ros cuboid_balance mirror_actuator_V1
PRBS.h@0:a201a6cd4c0c, 2019-03-07 (annotated)
- Committer:
- altb2
- Date:
- Thu Mar 07 07:03:56 2019 +0000
- Revision:
- 0:a201a6cd4c0c
New Library
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
altb2 | 0:a201a6cd4c0c | 1 | class PRBS |
altb2 | 0:a201a6cd4c0c | 2 | { |
altb2 | 0:a201a6cd4c0c | 3 | public: |
altb2 | 0:a201a6cd4c0c | 4 | |
altb2 | 0:a201a6cd4c0c | 5 | PRBS(int n); |
altb2 | 0:a201a6cd4c0c | 6 | |
altb2 | 0:a201a6cd4c0c | 7 | float operator()() { |
altb2 | 0:a201a6cd4c0c | 8 | return update(); |
altb2 | 0:a201a6cd4c0c | 9 | } |
altb2 | 0:a201a6cd4c0c | 10 | |
altb2 | 0:a201a6cd4c0c | 11 | virtual ~PRBS(); |
altb2 | 0:a201a6cd4c0c | 12 | |
altb2 | 0:a201a6cd4c0c | 13 | void reset(); |
altb2 | 0:a201a6cd4c0c | 14 | float update(); |
altb2 | 0:a201a6cd4c0c | 15 | |
altb2 | 0:a201a6cd4c0c | 16 | void printPRBSind(); |
altb2 | 0:a201a6cd4c0c | 17 | void printPRBSregister(); |
altb2 | 0:a201a6cd4c0c | 18 | |
altb2 | 0:a201a6cd4c0c | 19 | private: |
altb2 | 0:a201a6cd4c0c | 20 | |
altb2 | 0:a201a6cd4c0c | 21 | int ii; |
altb2 | 0:a201a6cd4c0c | 22 | int n; |
altb2 | 0:a201a6cd4c0c | 23 | int Nprbs; |
altb2 | 0:a201a6cd4c0c | 24 | int *Register; |
altb2 | 0:a201a6cd4c0c | 25 | int Nind; |
altb2 | 0:a201a6cd4c0c | 26 | int *ind; |
altb2 | 0:a201a6cd4c0c | 27 | |
altb2 | 0:a201a6cd4c0c | 28 | void getPrbsIndex(int n); |
altb2 | 0:a201a6cd4c0c | 29 | void printLine(); |
altb2 | 0:a201a6cd4c0c | 30 | |
altb2 | 0:a201a6cd4c0c | 31 | }; |