How to change my primary altitude source

Hello, I am using indoor drone with jetson board using optical flow sensor. I try to change my primary altitude source to baro to range finder. After I change parameters I checked IMU using companion computer but range finder data was not detected as a Z axis instead of rangefinder data barometer data only shows.
what are all the parameters I need to change for set primary height source to rangefinder.

@surya_M
https://ardupilot.org/copter/docs/parameters.html#ek2-alt-source-primary-altitude-sensor-source

I already changed these two parameters. I put
EK2_ALT_SOURCE 1(rangefinder)
EK2_RNG_USE_HGT 50(percentage)

You should update to ArduCopter 4.3.4 and use EKF3 instead of EKF2