added hcsr04 distance measure function to ctrl-app