'This attribute is used to get and set the current flight mode. You
can specify the value as a :py:class:`VehicleMode`, like this:
.. code-block:: python
vehicle.mode = VehicleMode(\'LOITER\')
Or as a simple string:
.. code-block:: python
vehicle.mode = \'LOITER\'
If you are targeting ArduPilot you can also specify the flight mode
using a numeric value (this will not work with PX4 autopilots):
.. code-block:: python
# set mode to LOITER
vehicle.mode = 5'

@property
def mode(self):

    if (not self._flightmode):
        return None
    return VehicleMode(self._flightmode)
