def nmea_cb(msg):
    global prev
    global curr
    if (prev is None):
        prev = Status(msg.sentence)
        return
    curr = Status(msg.sentence)
    if (not curr.is_gga):
        return
    if (prev != curr):
        status_change = Status.get_status_change(prev, curr)
        [rospy.loginfo(s) for s in status_change]
        n = max(map((lambda line: len(line)), status_change))
        print((' ' * n))
    print_current_status(curr)
    prev = copy.deepcopy(curr)
def nmea_cb(msg):
    global prev
    global curr
    if (prev is None):
        prev = Status(msg.sentence)
        return
    curr = Status(msg.sentence)
    if (not curr.is_gga):
        return
    if (prev != curr):
        status_change = Status.get_status_change(prev, curr)
        [rospy.loginfo(s) for s in status_change]
        n = max(map((lambda line: len(line)), status_change))
        print((' ' * n))
    print_current_status(curr)
    prev = copy.deepcopy(curr)