def METHOD_NAME(tag):
    angle = int((tag.rotation() * 180) // math.pi)
    temp = struct.pack(
        "<hhhhhh", tag.id() + 8, tag.cx(), tag.cy(), tag.w(), tag.h(), angle
    )
    return struct.pack("<hh12s", 0xAA56, checksum(temp), temp)