Precision with companion computer not working , April Tag (Aruco Marker), Dronekit python

@ppoirier actually i dont want the rc to be used for the obstacle avoidance setup i only need to perform obstacle avoidance with my raspberrypi3 with ultrasonic sensor or lidar

if the above not posibble please guide me to make obstacle avoiance using raspberry pi 3 and pixhawk3 and also TFmini/ultrasonic sensor in autonomous drone delivery project for my college

Ultrasound is outdated and has too many false positives. Do like Patrick told you and get some infrared, laser or stereo camera sensors.

Thank you @amilcarlucas @ppoirier @rishabsingh3003

I had a tf mini now can i follow the above method for obstacle avoidance

How you fixed the precision landing problem. Iam using Raspberry 3b+ with pi cam. The vehicle not responding to landing_target_encode() function.

Did you fixed the precision landing problem? I am trying to do precision landing using companion computer and aruco marker , no response from .landing_target_encode function. Any idea?

def send_land_message(x,y):
msg = vehicle.message_factory.landing_target_encode(
0,
0,
mavutil.mavlink.MAV_FRAME_BODY_OFFSET_NED,
x,
y,
0,
0,
0,)
vehicle.send_mavlink(msg)
vehicle.flush()