Below is my distance sensor measurement which looks ugly with lots of noise.
I just hooked up my maxbotics sonar PWM pin to AUX5 on pixhawk board.
I set ll40ls as pwm to utilize this sensor and this is the result.
Looking at the code LidarLitePWM.cpp I see no filtering is going on and just publish as is.
Is there a way I can put this data into a pre defined filter or I have to make one.
Thanks in advance.