code: def get_default_frame(self):
          '''default frame for waypoints'''
          if self.settings.terrainalt == 'Auto':
              if self.get_mav_param('TERRAIN_FOLLOW',0) == 1:
                  return mavutil.mavlink.MAV_FRAME_GLOBAL_TERRAIN_ALT
              return mavutil.mavlink.MAV_FRAME_GLOBAL_RELATIVE_ALT
          if self.settings.terrainalt == 'True':
              return mavutil.mavlink.MAV_FRAME_GLOBAL_TERRAIN_ALT
          return mavutil.mavlink.MAV_FRAME_GLOBAL_RELATIVE_ALf get_default_frame(self):
          '''default frame for waypoints'''
          if self.settings.terrainalt == 'Auto':
              if self.get_mav_param('TERRAIN_FOLLOW',0) == 1:
                  return mavutil.mavlink.MAV_FRAME_GLOBAL_TERRAIN_ALT
              return mavutil.mavlink.MAV_FRAME_GLOBAL_RELATIVE_ALT
          if self.settings.terrainalt == 'True':
              return mavutil.mavlink.MAV_FRAME_GLOBAL_TERRAIN_ALT
          return mavutil.mavlink.MAV_FRAME_GLOBAL_RELATIVE_ALT
docs: default frame for waypoints