Real Time Implementation of an Inertial Measurement Unit based on Fiber-Bragg Sensor Array using Legendre Polynomial