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()

class firmware.imu.imu.IMUInterface(bus)[source]

Bases: object

GYRO_YAW_THRESHOLD = 3
MAG_TO_MCRO_TSLA = 100.0
calibrate_yaw()[source]
Return type:

None

get_imu()[source]
Return type:

IMU

get_imu_data()[source]
Return type:

ndarray

get_measurement()[source]
Return type:

list[list[float]]

step(dt)[source]
Return type:

list[Any]

Module contents