Supporting Browser-based Javascript and Node.js
alistair.monaghan
Phidgetsian
Posts: 9 Joined: Tue Mar 05, 2019 3:36 am
Contact:
Post
by alistair.monaghan » Fri Aug 02, 2019 9:30 am
Hi there, the data from my Phidget touch wheel defaults to anti-clockwise actions - is there a way to make it clockwise?
Thanks in advance
Al
jdecoux
Labview Developer
Posts: 163 Joined: Mon Nov 13, 2017 10:20 am
Contact:
Post
by jdecoux » Fri Aug 02, 2019 12:28 pm
You can make it clockwise by applying some simple math to the touch value:
Code: Select all
clockwiseValue = (touchValue * -1) + 1
jdecoux
Labview Developer
Posts: 163 Joined: Mon Nov 13, 2017 10:20 am
Contact:
Post
by jdecoux » Tue Aug 06, 2019 10:08 am
Anywhere in your code where you are getting the touch value from the capacitive touch wheel. Just apply the equation to the reading before you use it, and then use the result in place of the raw touch value.
Users browsing this forum: Bing [Bot] , Google [Bot] and 47 guests