Page 1 of 1

Change pressure according to formula

Posted: Friday 08 April 2016 10:41
by Peregrine
Hi,

I have realised that my barometer show a too small value but it is not a fixed value it has a linear error, i.e. the greater the pressure the larger the error. I know that you can add a fixed value change in the device setup but not according to a formula like, a x pressure + b. Is this possible to implement this?

Re: Change pressure according to formula

Posted: Monday 11 April 2016 20:58
by georgesattali
Hello,
would be easily done with a virtual device and a "device" script in blocky or lua : each time your real barometer device changes, you can apply the formula to the virtual barometer.
I don't know if there are other solutions.
Bye, GD