from ahrs.gx5_25 import GX5_25
import time

a = GX5_25(COM='COM4')

while True:
    time.sleep(0.25)
    foo = a.get_data_with_ack()
    if foo is None:
        exit()
