Sounds like your compass didn't match the direction the drone was facing at takeoff..if so, magnetic interference. Did you calibrate the compass before flight and/or takeoff in proximity of metal, rebar, vehicles, etc.? Upon liftoff the drone becomes confused about where it's supposed to be and...