code: def wp_is_loiter(self, i):
          '''return true if waypoint is a loiter waypoint'''
          loiter_cmds = [mavutil.mavlink.MAV_CMD_NAV_LOITER_UNLIM,
                  mavutil.mavlink.MAV_CMD_NAV_LOITER_TURNS,
                  mavutil.mavlink.MAV_CMD_NAV_LOITER_TIME,
                  mavutil.mavlink.MAV_CMD_NAV_LOITER_TO_ALT]
  
          if (self.wpoints[i].command in loiter_cmds):
              return True    
  
          return Falsf wp_is_loiter(self, i):
          '''return true if waypoint is a loiter waypoint'''
          loiter_cmds = [mavutil.mavlink.MAV_CMD_NAV_LOITER_UNLIM,
                  mavutil.mavlink.MAV_CMD_NAV_LOITER_TURNS,
                  mavutil.mavlink.MAV_CMD_NAV_LOITER_TIME,
                  mavutil.mavlink.MAV_CMD_NAV_LOITER_TO_ALT]
  
          if (self.wpoints[i].command in loiter_cmds):
              return True    
  
          return False
docs: return true if waypoint is a loiter waypoint