Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix tests to use center of boat as ref pos
Browse files Browse the repository at this point in the history
and avoid using null values in converter
eduardacoppo committed Jan 28, 2025
1 parent d9f0073 commit e84d72c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/ais_task_test.rb
Original file line number Diff line number Diff line change
@@ -96,8 +96,8 @@
assert_in_delta 3.8, vessel.draft, 1e-3
assert_in_delta 50, vessel.length, 1e-3
assert_in_delta 9, vessel.width, 1e-3
assert_in_delta 10, vessel.reference_position.x, 1e-3
assert_in_delta 5, vessel.reference_position.y, 1e-3
assert_in_delta 25, vessel.reference_position.x, 1e-3
assert_in_delta 4.5, vessel.reference_position.y, 1e-3
assert_in_delta 0, vessel.reference_position.z, 1e-3

assert_equal 0, stats.discarded_sentences
@@ -208,7 +208,7 @@ def setup_ais_task(use_sensor_offset_correction: true) # rubocop:disable Metrics
OroGen.nmea0183.AISTask.deployed_as("ais_task")
)
@task.properties.utm_configuration = Types.gps_base.UTMConversionParameters.new(
nwu_origin: Eigen::Vector3.new(0, 0, 0),
nwu_origin: Eigen::Vector3.new(1, 1, 0),
utm_zone: 11,
utm_north: true
)

0 comments on commit e84d72c

Please sign in to comment.