use circular average to make sensororientation less jumpy, issue #147