'Sets the home location (``LocationGlobal``).
The value cannot be set until it has successfully been read from the vehicle. After being
set the value is cached in the home_location attribute and does not have to be re-read.
.. note::
Setting the value will fail silently if the specified location is more than 50km from the EKF origin.'

@home_location.setter
def home_location(self, pos):

    if (not isinstance(pos, LocationGlobal)):
        raise Exception('Excepting    home_location    to    be    set    to    a    LocationGlobal.')
    self._home_location = copy.copy(pos)
    self.send_mavlink(self.message_factory.command_long_encode(0, 0, mavutil.mavlink.MAV_CMD_DO_SET_HOME, 0, 2, 0, 0, 0, pos.lat, pos.lon, pos.alt))
