Drone wont climb above 1m in loiter mode

My drone wont climb after 1m height. I am using Hex here flow sensor. there is no gps module mounted on the drone. what can be the issue?
I have set these parameters in mission planner

  1. Set EK3_SRC1_POSXY= 0(Primary horizontal position from GPS, set this to 0 to only use the optical flow sensor)
  2. Set EK3_SRC1_VELXY = 5 (Primary horizontal velocity from OpticalFlow)
  3. Set EK3_SRC1_POSZ = 1 (Primary vertical position from barometer)
  4. Set EK3_SRC1_VELZ = 0 (No primary vertical velocity sensor)
  5. Set EK3_SRC1_YAW = 1 (Primary yaw/heading from compass)
  6. Set FLOW_TYPE = 6 (DroneCAN)
  7. Set CAN_P1_DRIVER = 1 to enable DroneCAN
  8. Set CAN_D1_PROTOCOL = 1 (DroneCAN)
  9. Set RNGFND1_TYPE = 24 (DroneCAN)
  10. Set RNGFND1_MAX_CM = 300 to set range finder’s maximum range to 3m

Can it be an error in the gravity reduction loop? Who knows, if you post DF logs, that world help is help you. :slight_smile:

Why not 2? (rangefinder)

Usually, in such case ERR messages in the log are highly helpful

Hi i got ans for my que that hereflow sensor range is only upto 2M so i added one more lidar(tf mini s) and the problem was resolved as the input was taken from range finder insted of baro