bade tracker code

starting point taken from polhemus sdk