Calculating Center Of Gravity From An Imu