This function connects your controller with the program. You can set debug equal to True if you want to see helpful print statements that can help you debug your code. We recommend setting this to True to check if commands are being skipped. You can also set the specific USB port name.
port_name: A string containing the port name or number.
debug: Boolean that is default to False.
drone = CoDrone_mini.CoDrone()
drone.pair() # pair automatically, may not always work
# drone.pair(debug=True) # sets the debug statements to True
# drone.pair(port_name = 'COM3') # pair with a specific port