GNSS follow glides the marker and the camera linearly to each fix over the poll interval instead of jumping; the simulation sends a fix every 0.5 s
This commit is contained in:
1 parent
8680cdbee7
commit
fbccb2acc9
3 files changed
+22
-6
No files matched your search
@@ -3,12 +3,12 @@ require_relative "routing"
|
||||
module Maptool
|
||||
# Simulated driving, to try the dashboard and navigation without the car:
|
||||
# from a start point it routes (our Valhalla) to a random point 2–8 km
|
||||
# away and drives there at the road's speed limit, a fix a second, then
|
||||
# away and drives there at the road's speed limit, a fix every TICK_S, then
|
||||
# on to the next random point. Its fixes go where the GNSS node's do
|
||||
# (app.rb: the CAN store's gnss.* signals and GNSS_LATEST), the node's own
|
||||
# are ignored meanwhile.
|
||||
class GnssSim
|
||||
TICK_S = 1.0
|
||||
TICK_S = 0.5 # finer than the clients poll (1.5 s), so each poll sees a fresh fix
|
||||
DEST_KM = (2.0..8.0)
|
||||
NO_LIMIT_KMH = 50 # an untagged road
|
||||
UNLIMITED_KMH = 130
|
||||
|
||||
Reference in new issue
Block a user