SensorSim This simulates the result of running Madgwick's algorithm on an IMU which is spun multiple times around one axis. Function orientationError plots the error as a function of time.