Best way to scale PPM IN?

More
08 Nov 2018 00:55 - 08 Nov 2018 00:57 #71633 by Peeeter
Best way to scale PPM IN? was created by Peeeter
Hi,

assume there are channels on a radio with an original range of -100 to +100.

When importing these channels via ppm_in into another radio running Deviation, the imported channel range is -127 to +128. I guess that rescaling to a range of -100 to +100 would make sense.

(100 + 100) / (127 + 128) = 0.784,

so I scaled with a "scalar=78" in the mixer section. This yields a rescaled range of -99 to +99.

Using "scalar=79" gives me a range of -101 to +101. Is there a better way to do this? Or is 1 % error negligible?

Many thanks for your time
Peter
Last edit: 08 Nov 2018 00:57 by Peeeter.

Please Log in or Create an account to join the conversation.

Time to create page: 0.034 seconds
Powered by Kunena Forum