wbreeze / ShipsClock

An iOS, SwiftUI clock for tracking watches on board a ship. Marks the day in periods of four hours.
https://wbreeze.github.io/ShipsClock
Apache License 2.0
2 stars 0 forks source link

Refactor and test location tracker for velocity #18

Closed wbreeze closed 3 years ago

wbreeze commented 3 years ago

It turns out the conversion of seconds to hours used a factor of 360.0. Sixty seconds per minute times sixty minutes per hour is 3600.0, not 360.0. The corrected code passes the tests.

closes #17