I encounted an odd issue. I install a LidarLite3 rangefinder on pixhawk on my hexa copter, when I fly it in loiter mode with remote control, the LidarLite can work, as I put something below the copter, it can go up automaticly, but when the copter run waypoint command automaticly in guieded mode with dronekit app, the LidarLite cann't work, seem like the copter use the barometer instead of LidarLite.
who can I help me, and give me some hints. thanks a lot!!!
some dronekit code snippet below:
vehicle.mode = VehicleMode("GUIDED")
self.targetLocation = LocationGlobalRelative(lan, lon, alt)