added conversion method to generate number from heading in advance of heading adjustment left or right