# Path: ogn/parser/pattern.py
# PATTERN_NAVITER_POSITION_COMMENT = re.compile(r"""
#     id(?P<details>[\dA-F]{4})(?P<address>[\dA-F]{6})\s
#     (?P<climb_rate>[+-]\d+)fpm\s
#     (?P<turn_rate>[+-][\d.]+)rot
# """, re.VERBOSE | re.MULTILINE)
# 
# Path: ogn/parser/utils.py
# FPM_TO_MS = FEETS_TO_METER / 60     # ratio fpm to m/s
# 
# HPM_TO_DEGS = 180 / 60              # ratio between half turn per minute and degrees/s
# 
# Path: ogn/parser/aprs_comment/base.py
# class BaseParser():
#     def __init__(self):
#         self.beacon_type = 'unknown'
# 
#     def parse(self, aprs_comment, aprs_type):
#         if aprs_type.startswith('position'):
#             data = self.parse_position(aprs_comment)
#         elif aprs_type.startswith('status'):
#             data = self.parse_status(aprs_comment)
#         else:
#             raise ValueError("aprs_type {} unknown".format(aprs_type))
#         data.update({'beacon_type': self.beacon_type})
#         return data
# 
#     def parse_position(self, aprs_comment):
#         raise NotImplementedError("Position parser for parser '{}' not yet implemented".format(self.beacon_type))
# 
#     def parse_status(self, aprs_comment):
#         raise NotImplementedError("Status parser for parser '{}' not yet implemented".format(self.beacon_type))


from ogn.parser.pattern import PATTERN_NAVITER_POSITION_COMMENT
from ogn.parser.utils import FPM_TO_MS, HPM_TO_DEGS
from .base import BaseParser



class NaviterParser(BaseParser):
    def __init__(self):
        self.beacon_type = 'naviter'
        self.position_pattern = PATTERN_NAVITER_POSITION_COMMENT

    def parse_position(self, aprs_comment):

# Path: ogn/parser/pattern.py
# PATTERN_NAVITER_POSITION_COMMENT = re.compile(r"""
#     id(?P<details>[\dA-F]{4})(?P<address>[\dA-F]{6})\s
#     (?P<climb_rate>[+-]\d+)fpm\s
#     (?P<turn_rate>[+-][\d.]+)rot
# """, re.VERBOSE | re.MULTILINE)
# 
# Path: ogn/parser/utils.py
# FPM_TO_MS = FEETS_TO_METER / 60     # ratio fpm to m/s
# 
# HPM_TO_DEGS = 180 / 60              # ratio between half turn per minute and degrees/s
# 
# Path: ogn/parser/aprs_comment/base.py
# class BaseParser():
#     def __init__(self):
#         self.beacon_type = 'unknown'
# 
#     def parse(self, aprs_comment, aprs_type):
#         if aprs_type.startswith('position'):
#             data = self.parse_position(aprs_comment)
#         elif aprs_type.startswith('status'):
#             data = self.parse_status(aprs_comment)
#         else:
#             raise ValueError("aprs_type {} unknown".format(aprs_type))
#         data.update({'beacon_type': self.beacon_type})
#         return data
# 
#     def parse_position(self, aprs_comment):
#         raise NotImplementedError("Position parser for parser '{}' not yet implemented".format(self.beacon_type))
# 
#     def parse_status(self, aprs_comment):
#         raise NotImplementedError("Status parser for parser '{}' not yet implemented".format(self.beacon_type))


# Path: ogn/parser/aprs_comment/naviter_parser.py
from ogn.parser.pattern import PATTERN_NAVITER_POSITION_COMMENT
from ogn.parser.utils import FPM_TO_MS, HPM_TO_DEGS
from .base import BaseParser




class NaviterParser(BaseParser):
    def __init__(self):
        self.beacon_type = 'naviter'
        self.position_pattern = PATTERN_NAVITER_POSITION_COMMENT

    def parse_position(self, aprs_comment):

        match = self.position_pattern.match(aprs_comment)