wits icon indicating copy to clipboard operation
wits copied to clipboard

Can you please explain the cq values?

Open benkhlifafahmi opened this issue 6 years ago • 1 comments

While getting the contact quality i was getting values such as : 9815, which is converted to -6569 signed integer while it should be a number between 0-16. Can you please explain how to detected the right contact quality of each sensors .

Computer : DELL OptiPlex 3060 OS: Ubuntu 18.04 LTS Architecture : x64bits

Regards, Ben

benkhlifafahmi avatar Jul 01 '19 19:07 benkhlifafahmi

Hello Ben,

Here’s the equation to convert it to 0-100, as it’s a percentage:

Math.floor(cq / 8192 * 100)

dashersw avatar Jul 02 '19 08:07 dashersw