from dronekit import connect # Connect to the Vehicle (in this case a UDP endpoint) vehicle = connect('COM8', wait_ready=True, baud=115200)