diff options
author | Matt Strapp <matt@mattstrapp.net> | 2022-02-24 16:45:22 -0600 |
---|---|---|
committer | Matt Strapp <matt@mattstrapp.net> | 2022-02-24 16:45:22 -0600 |
commit | 9a6dc4c17d23e19d75ed38cd99ede00a7d5a678f (patch) | |
tree | db185970550ecf89c21507e14ca7d0d7033c95dc /System/pendulum | |
parent | remove thing (diff) | |
download | ee4511w-9a6dc4c17d23e19d75ed38cd99ede00a7d5a678f.tar ee4511w-9a6dc4c17d23e19d75ed38cd99ede00a7d5a678f.tar.gz ee4511w-9a6dc4c17d23e19d75ed38cd99ede00a7d5a678f.tar.bz2 ee4511w-9a6dc4c17d23e19d75ed38cd99ede00a7d5a678f.tar.lz ee4511w-9a6dc4c17d23e19d75ed38cd99ede00a7d5a678f.tar.xz ee4511w-9a6dc4c17d23e19d75ed38cd99ede00a7d5a678f.tar.zst ee4511w-9a6dc4c17d23e19d75ed38cd99ede00a7d5a678f.zip |
Fix bug about declaring the limits
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to '')
-rw-r--r-- | System/pendulum/system.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/System/pendulum/system.py b/System/pendulum/system.py index 67bd550..07c04bf 100644 --- a/System/pendulum/system.py +++ b/System/pendulum/system.py @@ -74,8 +74,8 @@ class System: # Setup soft limits if defined by the user (this is "challenge mode" for the user, making the constraints more difficult). # By default, the soft limits will not be used (when set NaN), and the whole extent of the system is available (to the HW limits). - #self.negative_soft_limit = negative_limit - #self.positive_soft_limit = positive_limit + self.negative_soft_limit = negative_limit + self.positive_soft_limit = positive_limit # If both limits have been defined, verify that they are valid (i.e. positive limit must be greater than the negative limit) if not math.isnan(negative_limit) and not math.isnan(positive_limit) and not negative_limit < positive_limit: print("ERROR: Invalid software limits provided. Must be valid floating-point numbers and positive limit must be greater than negative limit. Software limits will be disabled.") |