Introduce bearing rate calculation to display (fix JS format)