Skip to content

Commit

Permalink
Upgrade rotations (#15)
Browse files Browse the repository at this point in the history
* Upgrade Rotations

* Update formatting

* Don't skip version

---------

Co-authored-by: Brian Jackson <[email protected]>
  • Loading branch information
bjack205 and Brian Jackson authored Mar 21, 2024
1 parent 8a2bb86 commit a3abc6e
Showing 1 changed file with 6 additions and 5 deletions.
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)

2 comments on commit a3abc6e

@bjack205
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request updated: JuliaRegistries/General/103299

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.3.3 -m "<description of version>" a3abc6eddc928f71a912680b9975d20be874745d
git push origin v0.3.3

Also, note the warning: Version 0.3.3 skips over 0.3.2
This can be safely ignored. However, if you want to fix this you can do so. Call register() again after making the fix. This will update the Pull request.

Please sign in to comment.