New QEI library with position (angle) outputs
Fork of QEI_modified by
Diff: QEI.cpp
- Revision:
- 3:a5aa3e6ea2b7
- Parent:
- 2:205d0280632a
- Child:
- 4:9699a757d4ed
--- a/QEI.cpp Mon Feb 22 09:44:15 2016 +0000 +++ b/QEI.cpp Tue May 03 08:04:08 2016 +0000 @@ -309,5 +309,5 @@ } double QEI::getAngularSpeed(){ - return angularvelocity/(pulsesPerRev_*1.0)*6.2831852/sampletime_/arraysize_; + return angularvelocity/(pulsesPerRev_*1.0)*6.2831852/sampletime_/(arraysize_*1.0); }