Hi Cadeq,
Can you share some of your code and circuit diagram?
There is a specific way to use the ping sensors for Galileo and Edison.
You will need 2 digital pins, one for out put and another for input.
The reason pulseIn() is returning 0 is likely because it is timing out.
If you just use the code for regular arduino's it will not work because the Galileo/Edison is not fast enough in switching a pin from output to input.
This results with pulseIn() missing the pulse output of the ultrasonic sensors.
Thanks,
Dino Tinitigan