sn7544
Diff: motor.cpp
- Revision:
- 8:4fa7fadc583d
- Parent:
- 7:42c478f9a1fe
- Child:
- 9:b1c5a0cf4a9b
--- a/motor.cpp Wed Jul 10 04:30:47 2019 +0000 +++ b/motor.cpp Thu Jul 11 13:29:17 2019 +0000 @@ -16,7 +16,7 @@ cpidx =0; DeltaT = 32; // Timer Interrupt period = 32ms = 32,000 us - CntPerRev = 2400; // 100 shft/rev x 6 pls/shft x 4 evnt/pls + CntPerRev = 2800; // 100 shft/rev x 7 pls/shft x 4 evnt/pls duty = 50; PreviousEncode = 0; TargetSpeed = 0; //initial target speed