In Drone programming primer course, function to connect python script to sitl drone part 1, there is a python script which tries to connect to sim_vehicle. But when I run the script with command:
python connection_template --connect 127.0.0.1:14550 I get error:
dronekit.TimeoutError: wait_ready experienced a timeout after 30 seconds.
sim_vehicle has been started in ArduCopter.
I have attached python script text.