Planning (the Design canvas' Plan and GridToday, ideas from azedler/roadplanner): a stop's type as its NPS pictogram (marker and list), notes on the trip, its days and stops, + on a leg inserts the next point there; a parking spot per stop (P marker, the route goes there, the walk shown); a link pasted into the search becomes a place (/api/link: the URL's coordinates, else the page's geo meta / JSON-LD / a map link; public addresses only, logged in), added on the leg it lengthens least; avoids for the trip (+ ferries, unpaved) or a day (routed in pieces, joined); Check and Costs folds in the Route panel (no leave time, long days, arriving after sunset, long walks, missing vignettes; fuel from km × consumption × price, stop costs / paid, the budget); Today in drive mode's Menu (stops left, tonight, sunset, Open-Meteo weather, the day's notes, Skip next, Tomorrow). Plugins along the trip's route (Maptool::Corridor, a corridor width; Overpass around:) and plugin settings saved server-side; p4n via a host Firefox's cookies (docs/deployment.adoc). The recording's days (cut where the car stood ≥ 4 h, or by hand) and their export (days, a piece A–B, the whole trip; GPX with times). Track replay in the GNSS simulator. Step advance 5 m past a maneuver. The level gauge (drive mode, from Terrain): lift per wheel to the ramps' steps from roll, pitch, wheelbase and track
This commit is contained in:
1 parent
5e31dfaba9
commit
87d7bd2463
36 files changed
+2047
-123
No files matched your search
@@ -22,6 +22,19 @@ class GnssSimTest < Minitest::Test
|
||||
assert_in_delta (1000 / (36 / 3.6) / 2 + 500 / (45 / 3.6)) / Maptool::GnssSim::TICK_S, fixes.size, 3 # a fix every TICK_S
|
||||
end
|
||||
|
||||
# A track replayed at its own pace: 100 m in 10 s (10 m/s), a stop of an
|
||||
# hour cut to MAX_GAP_S, another 100 m in 20 s; ends at its end.
|
||||
def test_replays_a_track_at_its_own_speed
|
||||
fixes = []
|
||||
step = 100.0 / 111_320
|
||||
track = [[17.0, 48.0, 1000], [17.0, 48.0 + step, 1010], [17.0, 48.0 + step, 4610], [17.0, 48.0 + 2 * step, 4630]]
|
||||
Maptool::GnssSim.new("http://valhalla", sleep: ->(_s) {}).replay(track) { |fix| fixes << fix }
|
||||
assert_in_delta 10.0, fixes.first[:speed], 0.01
|
||||
assert_in_delta 5.0, fixes.last[:speed], 0.01
|
||||
assert_in_delta 48.0 + 2 * step, fixes.last[:lat], 1e-9
|
||||
assert_in_delta (10 + Maptool::GnssSim::MAX_GAP_S + 20) / Maptool::GnssSim::TICK_S, fixes.size, 2
|
||||
end
|
||||
|
||||
# Started with the trip's route: from its start along it, before any random trip.
|
||||
def test_starts_along_a_given_route
|
||||
fixes = Queue.new
|
||||
|
||||
Reference in new issue
Block a user