I’m trying to measure a volume of water in my water tank using ultrasonic sensor. The sensor gives me water level in the tank but as the tank is cylindrical I need to re-calculate this to the water volume in order to know how much water is in there. For that, I need to use the cos() function. I’ve tried to use an expression with cos() or Math.cos() but without success.
Would anyone have an idea how to tweak Pimatic to work with cos() function?
Thanks a lot in advance!