Skip to content

Commit

Permalink
Don't skip version
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Jackson committed Mar 21, 2024
1 parent 0819926 commit 5bf0333
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "RobotZoo"
uuid = "74be38bb-dcc2-4b9e-baf3-d6373cd95f10"
authors = ["Brian Jackson <[email protected]>"]
version = "0.3.3"
version = "0.3.2"

[deps]
FiniteDiff = "6a86dc24-6348-571c-b903-95158fe2bd41"
Expand Down
11 changes: 6 additions & 5 deletions test/linear_models_examples_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,23 @@ using FiniteDiff
using LinearAlgebra
using Test
using Random
Random.seed!(1)

Random.seed!(2)
const RD = RobotDynamics

## Double Integrator
D = 2
linmodel = RobotZoo.LinearModels.DoubleIntegrator(D)
model = RobotZoo.DoubleIntegrator(D)
x,u = rand(model)
x, u = rand(model)
@test RD.dynamics(model, x, u) RD.dynamics(linmodel, x, u)

h = 0.1
dmodel_exp = RobotZoo.DiscreteLinearModel(linmodel, h)
dmodel_lin = RobotZoo.LinearModels.DiscreteDoubleIntegrator(h, D)
@test RD.discrete_dynamics(dmodel_exp, x, u, 0.0, h)
RD.discrete_dynamics(dmodel_lin, x, u, 0.0, h)
@test RD.discrete_dynamics(dmodel_exp, x, u, 0.0, h)
RD.discrete_dynamics(dmodel_lin, x, u, 0.0, h)

## FlexibleSatellite
model = RobotZoo.LinearModels.FlexibleSatellite()
@test RD.dims(model) == (12,3,12)
@test RD.dims(model) == (12, 3, 12)

0 comments on commit 5bf0333

Please sign in to comment.