Problem during auto takeoff

Hi I’m having some problem. mY quad works fine in stabilize, alt hold. loiter and RTL. It also works well in auto mode but the problem is while taking off in auto mode at first it deflects at pitch direction then come very quickly to the starting home position and then starts climbing. why this is happening ? I have loaded the course inside my house. I think where I load the home position in flight plan and where I placed the quad is not the same place. is that is what creating problem? please help

here is the video link. notice during takeoff the quad simply don’t stays in one position. it tends to deflect in pitch direction. please help me finding the problem. :frowning: