Update heading in Arduino code