Bug fix for bug fix

Accidentally removed magneticHeading declaration and initialization