Touch Wheel - But clockwise

Supporting Browser-based Javascript and Node.js
Post Reply
alistair.monaghan
Phidgetsian
Posts: 11
Joined: Tue Mar 05, 2019 3:36 am
Contact:

Touch Wheel - But clockwise

Post by alistair.monaghan »

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: 180
Joined: Mon Nov 13, 2017 10:20 am
Contact:

Re: Touch Wheel - But clockwise

Post by jdecoux »

You can make it clockwise by applying some simple math to the touch value:

Code: Select all

clockwiseValue = (touchValue *  -1) + 1
alistair.monaghan
Phidgetsian
Posts: 11
Joined: Tue Mar 05, 2019 3:36 am
Contact:

Re: Touch Wheel - But clockwise

Post by alistair.monaghan »

Thanks, where would this need to go?
jdecoux
Labview Developer
Posts: 180
Joined: Mon Nov 13, 2017 10:20 am
Contact:

Re: Touch Wheel - But clockwise

Post by jdecoux »

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.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests