An inertial frame based alignment (IFBA) method is presented, especially for the applications on a rocking platform, e.g., marine applications. Defining the initial body frame as the inertial frame, the IFBA method achieves the alignment by virtue of a c