The last version programs
Dependencies: mbed TrapezoidControl Pulse QEI
Input/Encoder/Encoder.cpp@22:7d93f79a3686, 2019-09-17 (annotated)
- Committer:
- M_souta
- Date:
- Tue Sep 17 04:40:17 2019 +0000
- Revision:
- 22:7d93f79a3686
- Parent:
- 16:3f2c2d89372b
kkk
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kishibekairohan | 16:3f2c2d89372b | 1 | #include "Encoder.h" |
7ka884 | 1:b1219d8ca117 | 2 | #include "mbed.h" |
7ka884 | 1:b1219d8ca117 | 3 | |
M_souta | 22:7d93f79a3686 | 4 | const int PerRev = 256; |
7ka884 | 1:b1219d8ca117 | 5 | |
M_souta | 22:7d93f79a3686 | 6 | QEI encoder[] = { |
M_souta | 22:7d93f79a3686 | 7 | QEI(ECD_A_0,ECD_B_0,NC,PerRev,QEI::X4_ENCODING), |
M_souta | 22:7d93f79a3686 | 8 | QEI(ECD_A_1,ECD_B_1,NC,PerRev,QEI::X4_ENCODING), |
M_souta | 22:7d93f79a3686 | 9 | QEI(ECD_A_2,ECD_B_2,NC,PerRev,QEI::X4_ENCODING), |
M_souta | 22:7d93f79a3686 | 10 | QEI(ECD_A_3,ECD_B_3,NC,PerRev,QEI::X4_ENCODING), |
M_souta | 22:7d93f79a3686 | 11 | }; |
7ka884 | 1:b1219d8ca117 | 12 | |
kishibekairohan | 16:3f2c2d89372b | 13 | namespace ENCODER { |
M_souta | 22:7d93f79a3686 | 14 | |
M_souta | 22:7d93f79a3686 | 15 | |
M_souta | 22:7d93f79a3686 | 16 | |
kishibekairohan | 16:3f2c2d89372b | 17 | void ECD::Initialize() { |
M_souta | 22:7d93f79a3686 | 18 | |
7ka884 | 1:b1219d8ca117 | 19 | } |
7ka884 | 1:b1219d8ca117 | 20 | } |