Skip to content

Comments

Controllers#90

Merged
anchal-physics merged 12 commits intomasterfrom
controllers
Jun 30, 2025
Merged

Controllers#90
anchal-physics merged 12 commits intomasterfrom
controllers

Conversation

@anchal-physics
Copy link
Collaborator

@anchal-physics anchal-physics commented Jun 24, 2025

Releasing v2.2.1 with controllers and testbed

This release has generic closed loop simulation platform to test out control algorithms with plant models and actuator models.

  • All linear plant models with an additional possibility of applying some input conditioning to it that can be used to make it non-linear.

  • All actuation functions can be wrapped into an Actuator object which is what this platform uses.

  • Similarly, all control algorithms can be wrapped as well as long as they only use the described keyword arguments.

For convinience, childrens of Actuators and Controllers are provided.

  • A DelayedActuator type is provided that can be used to add a latency anywhere in the actuator. It is recommended to use this instance to insert latency for compatibility with provided controllers.

  • A LinearController is provided that can emulate any linear controller. See test example to see use for PI controller.

  • Novel PVLC and MPC algorithms have been provided that help fight against delayed and non-linear actuator restrictions. See test example for a quick glance.

Added abstract types Actuators and Controllers
which must be used to defined mutable structures
for different actuators and controllers that
should be callable, so that they get caled in
run_closed_lim_sim.

This has not been tested yet. Tests and further
debuggin would happen in next commits.
@codecov
Copy link

codecov bot commented Jun 24, 2025

Codecov Report

Attention: Patch coverage is 97.64706% with 4 lines in your changes missing coverage. Please review.

Project coverage is 87.37%. Comparing base (5d4ab20) to head (a366908).
Report is 13 commits behind head on master.

Files with missing lines Patch % Lines
src/controllers.jl 97.48% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #90      +/-   ##
==========================================
+ Coverage   85.03%   87.37%   +2.34%     
==========================================
  Files           5        6       +1     
  Lines         775      935     +160     
==========================================
+ Hits          659      817     +158     
- Misses        116      118       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Individual tests now should be calle using:
```
julia --project test/test.jl help
```

test/runtests.jl now can be called from Pkg.test
only as test specific dependencies have been
moved to test/Project.toml.
Now tests include noise injection at all the points and also compares
the residual of MPC with PVLC.
This release has generic closed loop simulation platform to test out
control algorithms with plant models and actuator models.

All linear plant models with an additional possibility of applying some
input conditioning to it that can be used to make it non-linear.

All actuation functions can be wrapped into an Actuator object which is
what this platform uses.

Similarly, all control algorithms can be wrapped as well as long as they
only use the described keyword arguments.

For convinience, childrens of Actuators and Controllers are provided.

A DelayedActuator type is provided that can be used to add a latency
anywhere in the actuator. It is recommended to use this instance to
insert latency for compatibility with provided controllers.

A LinearController is provided that can emulate any linear controller.
See test example to see use for PI controller.

Novel PVLC and MPC algorithms have been provided that help fight against
delayed and non-linear actuator restrictions. See test example for a
quick glance.
@anchal-physics anchal-physics merged commit fc9f53f into master Jun 30, 2025
6 checks passed
@eldond eldond deleted the controllers branch July 23, 2025 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant