Hey,
I’m testing MAVSDK_Python scripts in a GPS-denied environment on a drone consisting of,
Flight Controller: ModalAI_FCv2
PX4 version: v1.14.3 (Stable)
Companion Computer: RB5 Development Kit
Other sensors: ARK Flow V2
As in my earlier post drone-losing-position-crashing-in-offboard-mode, I’m testing the system now with a different flight controller.
For position estimates I rely on VIO(visual inertial odometry) from companion and Optical Flow.
I used the optical flow sensor for position hold, later I tried position hold only with external vision and position hold is very good, I can navigate seamlessly around using RC in position hold only with external vision(EV), I tried fusing both EV and OF, position hold was good, but in offboard, when I execute a script to move in a straight line, I observe a considerable amount of drift in position while executing the waypoints.
I observe that VIO is running fine, but overall my drone is drifting apart away from waypoints. With respect to Optical Flow, these are the parameters I set under EKF2,
EKF@_GND_MAX_HGT = 5.0 m
SENS_FLOW_MINHGT =0.1 m
EKF@_MIN_RNG =0.01m
For height estimation, I’m using
EKF2_HGT_Mode= Rangefinder
I have attached the logs below for reference.
-
https://review.px4.io/plot_app?log=3b4651d1-c7db-47bb-9b8f-a2fb8ec4bbfc
-
https://review.px4.io/plot_app?log=ff123541-5465-4f9d-9d3d-d98cd528621a
How can I prevent the drone from physical drifts while passing through the waypoints, maintaining a stable position?
Any help would be much appreciated! @JulianOes @rroche