AHRS read

 1'''
 2AHRS - AHRS_read.py.
 3
 4This example demonstrates the process of obtaining AHRS three axis estimation data.
 5
 6For other examples please check:
 7    https://github.com/WPC-Systems-Ltd/WPC_Stand-alone_Python_release/tree/main/examples
 8
 9Copyright (c) 2024 WPC Systems Ltd.
10All rights reserved.
11'''
12
13## WPC
14import pywpc
15
16## Python
17import time
18
19## AHRS start
20pywpc.AHRS_start()
21
22time.sleep(1)
23
24## Get AHRS's 3 axis orientation.
25print(pywpc.AHRS_getOrientation())
26
27## Get AHRS's 3 axis angular velocity.
28print(pywpc.AHRS_getAngularVelocity())
29
30## Get AHRS's 3 axis acceleration.
31print(pywpc.AHRS_getAcceleration())
32
33## AHRS stop
34pywpc.AHRS_stop()