Merged
Conversation
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 ReportAttention: Patch coverage is
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. 🚀 New features to boost your workflow:
|
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.