1. dt is milliseconds here (I think this code was written back when it was seconds)
2. What then heck are `jumpArms` and `hPi`?