after i took off, the ap wasn't following the flight plan and when i tried to get the hdg mode to get out of the AP pannel, it didnt work and thats y the direct isnt working either and the atc told me to correct my squwak code even tho it was correct and the atc isnt talking to me and i cant talk to atc