Quadcopter flip in auto takeoff

Hi everyone I want to do auto take off by mission planner but my drone flips,
I tried manual take off by loiter mode everything is fine.
Do you have any idea guys ??

Hello - can you upload your flight log?

It’s hard to say without any data, did you had a GPS Lock before lift off?