Unit Conversion
I have a number of proportional signals I'm working with that have a range of 0-65535. I want to display them in terms of output power percent (0-100%). I created a custom unit conversion with a raw unit input and a multipliers of .0015259 (so 65535 x .0015259 = 99.99%). The variables I'm using are raw int32 and I'm using a text gauge to display them. In the gauge I set the variable unit to the name of the custom unit I created above, however it actually seems to be dividing the input by .00152 instead of multiplying because at 65535, the display reads 42948424. Any ideas where I am going wrong or is there a better way to do this?
Please sign in to leave a comment.
Comments
1 comment