Skip to content

Commit

Permalink
Convert speed from m/s to km/h
Browse files Browse the repository at this point in the history
  • Loading branch information
simoexpo committed Feb 27, 2020
1 parent 1f6f7e8 commit 21ad37f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ object RawImplicitConversions {
flightStateJson.geo_altitude,
flightStateJson.true_track
),
flightStateJson.velocity
msToKmh(flightStateJson.velocity)
)
}

private def msToKmh(ms: Double): Double = ms * 3.6
}
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,6 @@ trait TestValues {
IcaoNumber,
Instant.ofEpochSecond(Updated),
Geography(49.2655, -1.9623, 9753.6, 282.76),
805.14
2898.504
)
}

0 comments on commit 21ad37f

Please sign in to comment.