code: def cmd_set_origin(self, args):
          '''called when user selects "Set Origin (with height)" on map'''
          (lat, lon) = (self.click_position[0], self.click_position[1])
          alt = self.ElevationMap.GetElevation(lat, lon)
          print("Setting origin to: ", lat, lon, alt)
          self.master.mav.set_gps_global_origin_send(
              self.settings.target_system,
              lat*10000000, # lat
              lon*10000000, # lon
              alt*1000f cmd_set_origin(self, args):
          '''called when user selects "Set Origin (with height)" on map'''
          (lat, lon) = (self.click_position[0], self.click_position[1])
          alt = self.ElevationMap.GetElevation(lat, lon)
          print("Setting origin to: ", lat, lon, alt)
          self.master.mav.set_gps_global_origin_send(
              self.settings.target_system,
              lat*10000000, # lat
              lon*10000000, # lon
              alt*1000)
docs: called when user selects "Set Origin (with height)" on map