Skip to content

Commit

Permalink
Merge pull request #73 from bitrockteam/hotfix/convert-ms-to-kmh
Browse files Browse the repository at this point in the history
Convert speed from m/s to km/h
  • Loading branch information
simoexpo authored Feb 27, 2020
2 parents 1f6f7e8 + 21ad37f commit 9a0e152
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 9a0e152

Please sign in to comment.