Pixhawk adc example problem

I compiled AnalogIn example and uploaded it to pixhawk 2.4.8 on ubuntu. On serial terminal I am getting zero output for all pins even if I connect some of adc pins to 5v.

I have attached output of serial terminal. How this problem can be solved?