Fixed the function deprecation warning in IMU plugin.