def parse_rssi(data):
    """
    parses an rssi message
    """

    # these are now comma separated values
    values = data.split(",")

    # extract the values
    msg = {}
    msg['rotating'] = float(values[0])
    msg['directional'] = float(values[1])
    msg['omni'] = float(values[2])
    msg['heading'] = float(values[3])
    msg['lat'] = float(values[4])
    msg['lon'] = float(values[5])
    msg['alt'] = float(values[6])

    # for now just print it out to the screen
    #print "RSSI measurement:\nrot\t{}\n\tdir:\t{}\n\tomni:\t{}\n\thead:\t{}\n".format(
    #    msg['rotating'], msg['directional'], msg['omni'], msg['heading'])

    # return a dictionary with the data
    return msg