code: def cmd_terrain_check(self, args):
          '''check a piece of terrain data'''
          if len(args) >= 2:
              latlon = (float(args[0]), float(args[1]))
          else:
              try:
                  latlon = self.module('map').click_position
              except Exception:
                  print("No map available")
                  return
              if latlon is None:
                  print("No map click position available")
                  return
          self.check_lat = int(latlon[0]*1e7)
          self.check_lon = int(latlon[1]*1e7)
          self.master.mav.terrain_check_send(self.check_lat, self.check_lonf cmd_terrain_check(self, args):
          '''check a piece of terrain data'''
          if len(args) >= 2:
              latlon = (float(args[0]), float(args[1]))
          else:
              try:
                  latlon = self.module('map').click_position
              except Exception:
                  print("No map available")
                  return
              if latlon is None:
                  print("No map click position available")
                  return
          self.check_lat = int(latlon[0]*1e7)
          self.check_lon = int(latlon[1]*1e7)
          self.master.mav.terrain_check_send(self.check_lat, self.check_lon)
docs: check a piece of terrain data