PX4 Initialization Transfer Alignment

Dear community,

I started with Ardupilot and recently changed to PX4. First of all, thanks for this great flight controller!

My question is around initialization of the flight controller from a moving platform. I’m able to access all data from the platform like attitude, position or velocities. The platform is constantly moving so I either need to start the PX4 when the platform is at rest or I need a transfer alignment procedure for a proper initialization of the FC.

Do you have any advice how to accomplish that? I thought of searching for the initialization phase, where the gyro biases are also set ( when the FC is still at rest) and replace this with a loop, which breaks when the TA is completed. Any advice or hint to the files would be very much appreciated.