fixed estimation code
Merge branch 'master' of github.com:openpowerquality/opq-hardware