Skip to content

Commit

Permalink
fix: fix tests to use ref pos relative to center
Browse files Browse the repository at this point in the history
and avoid using null values in converter
  • Loading branch information
eduardacoppo committed Jan 28, 2025
1 parent d9f0073 commit 7339e19
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
Expand Up @@ -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 -15, vessel.reference_position.x, 1e-3
assert_in_delta 0.5, vessel.reference_position.y, 1e-3
assert_in_delta 0, vessel.reference_position.z, 1e-3

assert_equal 0, stats.discarded_sentences
Expand Down Expand Up @@ -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
)
Expand Down

0 comments on commit 7339e19

Please sign in to comment.