A friend gave me a Phantom 4 after he had an incident with it. Upon inspection I found one of the motors overheated (melted the mount) and cracks in the skids and upper and lower shells. I replaced all of these items, calibrated the compass and IMU, and went for a test flight. Upon commanding take-off it ascends about 3 inches then rolls hard right contacting the ground. I checked propellers and ensured the motors were spinning in the correct direction. I tried taking off several times, all with the same results. I attached the link to the log below. I did not see anything related to how the aircraft reacted. Any help would be appreciated.