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
@@ -19,6 +19,6 @@ class GnssSimTest < Minitest::Test
|
||||
assert_in_delta 48.0 + 1000.0 / 111_320, fixes.last[:lat], 1e-9
|
||||
assert_equal [17.0, 48.0 + 1000.0 / 111_320], last
|
||||
assert fixes.each_cons(2).all? { |a, b| b[:lat] >= a[:lat] } # never backwards
|
||||
assert_in_delta 1000 / (36 / 3.6) / 2 + 500 / (45 / 3.6), fixes.size, 3 # ~1 fix a second
|
||||
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
|
||||
end
|
||||
Reference in new issue
Block a user