Description
From @hamishwillee:
@mrpollo I have tried to standardise on this arm_and_takeoff in all my examples - previously there was an ad-hoc mess of different pre-arm checks (including disabling the checks altogether).
In 99% of cases I think this sort of approach is what people will want to do, so it makes sense to make it easily accessible in a shared libary - part of Vehicle.commands?
We would need to make the system robust so that it would timeout if arming failed, and cope with the case of being called if the vehicle is already airborne (and what to do if not at the correct height). Note also that this method is (deliberately) synchronous, which means that you can't send other commands to the vehicle (e.g. set ROI) while this is executing.
An example of this code: https://github.com/diydrones/dronekit-python/blob/9130f1021b81e7be88f5d548c0ddcfcbf4231e10/examples/guided_set_speed_yaw/guided_set_speed_yaw.py#L16