You will somehow have to scale the reply that is returned. I always do it in Javascript, but there might be more native ways. In essence you must bias the number back (add 80) so it is in the range 0 to 96 in hout case. Then you need to scale the number to be in the range 0-65535. Assuming X is the number (as a number not a string)) returned, the analog join value would be ((X+80)/96)*65535; or if the returned value is a string then (((strVal-0)+80)/96)*65535. If you subtract 0 from a string value Javascript converts the string to its numeric equivalent.
From: comman...@googlegroups.com
[mailto:comman...@googlegroups.com] On
Behalf Of Niklas Johansson
Sent: Sunday, December 27, 2015
6:25 PM
To: CommandFusion Software
Subject: Re: Yamaha RX-A850 ip
control Noob
Now when i have that going i have tried to get a gauge working but with no succes.
I have setup a feedback as you can se in the picture.
The gauge has analog join 1220.
The value i get from the reciever is from -80 to 16
--
You received this message because you are subscribed to the Google Groups
"CommandFusion Software" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to commandfusio...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Now when i have that going i have tried to get a gauge working but with no succes.I have setup a feedback as you can se in the picture.The gauge has analog join 1220.The value i get from the reciever is from -80 to 16
--
I'm Laughing at myself, I always know there is a simpler native way that CommandFusion has provided. It's just that I don't know them all, and find Javascript very convenient.
From:
comman...@googlegroups.com [mailto:comman...@googlegroups.com] On Behalf Of Jarrod Bell
Sent: Sunday, December 27, 2015
7:22 PM
To: comman...@googlegroups.com
Subject: Re: Yamaha RX-A850 ip
control Noob
If you are
using normal feedback parsing (not JavaScript), simply enter the min and max
(-80 and 16) into the feedback capture group properties.
http://www.commandfusion.com/wiki2/software/gui-designer/system-manager/feedback-parsing/feedback-properties#min-val-max-val