Skip to content

Commit

Permalink
test: update sensor tests for Translational
Browse files Browse the repository at this point in the history
  • Loading branch information
sathvikbhagavan committed Jun 24, 2024
1 parent 6545345 commit 404a59c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/Mechanical/translational.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand All @@ -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
Expand Down

0 comments on commit 404a59c

Please sign in to comment.