Skip to content

Instantly share code, notes, and snippets.

@hooksj
hooksj / run_imu.py
Last active May 18, 2018 18:24
Read Euler angles and angular rates from the IMU
import Library.imu.imu as imu
import Memory.MemoryManager as MM
import mscl
import numpy as np
import time
import pdb
"""
Constantly reads Euler angles and angular rates from the IMU and writes them to shared memory.
"""
@hooksj
hooksj / imu.py
Last active May 18, 2018 18:23
Python class for communicating with a 3DM-GX4-25
import mscl
import numpy as np
import pdb
"""
Sets up a connection to the 3DM-GX4-25 Microstrain IMU
"""
class imu: