firmware.imu package¶
Submodules¶
firmware.imu.imu module¶
Example usage.
from firmware.imu.imu import IMUInterface import time
- def main():
imu = IMUInterface(1)
last = time.time() while True:
current = time.time() dt = current - last print(imu.step(dt)) last = current
- if __name__ == “__main__”:
main()