2nd Library
Dependents: cuboid_balance_ros cuboid_balance mirror_actuator_V1
PRBS.h@3:e3b84ea63c0f, 2021-04-01 (annotated)
- Committer:
- altb2
- Date:
- Thu Apr 01 13:38:43 2021 +0000
- Revision:
- 3:e3b84ea63c0f
- Parent:
- 0:a201a6cd4c0c
PIDT2 added
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 | }; |