From 404a59ca2e15b6e577db41030741fab5145e5fb5 Mon Sep 17 00:00:00 2001 From: Sathvik Bhagavan Date: Mon, 24 Jun 2024 08:57:25 +0000 Subject: [PATCH] test: update sensor tests for Translational --- test/Mechanical/translational.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/Mechanical/translational.jl b/test/Mechanical/translational.jl index 6572d34dc..ecff12de1 100644 --- a/test/Mechanical/translational.jl +++ b/test/Mechanical/translational.jl @@ -135,7 +135,8 @@ end eqs = [connect(pos.s, src1.output) connect(force.f, src2.output) - connect(spring.flange_a, pos.flange, force_sensor.flange) + connect(pos.flange, force_sensor.flange_a) + connect(force_sensor.flange_b, spring.flange_a) connect(spring.flange_b, force.flange, pos_sensor.flange) connect(pos_value, pos_sensor.output) connect(force_output, force_sensor.output)] @@ -153,6 +154,7 @@ end s_b = 2 - delta_s + 1 @test sol[s.pos_value.u][end]≈s_b atol=1e-3 + @test all(sol[s.spring.flange_a.f] .== sol[s.force_output.u]) end @testset "AccelerationSensor" begin