Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mode manager prevents redundant mode changes #67

Merged
merged 4 commits into from
Apr 6, 2021

Conversation

norro
Copy link
Collaborator

@norro norro commented Mar 30, 2021

Before executing a requested mode change, i.e. applying the according changes, it is now checking whether the mode is already active. If so, no action is taken, but mode change service request is still returned with success.

#60

Before executing a requested mode change, i.e. applying the according
changes, it is now checking whether the mode is already active. If so,
no action is taken, but mode change service request is still returned with
success.

#60

Signed-off-by: Nordmann Arne (CR/ADT3) <arne.nordmann@de.bosch.com>
Signed-off-by: Nordmann Arne (CR/ADT3) <arne.nordmann@de.bosch.com>
@norro norro requested a review from ralph-lange March 30, 2021 06:24
@norro norro self-assigned this Mar 30, 2021
@norro norro added the enhancement New feature or request label Mar 30, 2021
@norro norro linked an issue Mar 30, 2021 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Mar 30, 2021

Codecov Report

Merging #67 (eca34d5) into master (02b4b3e) will decrease coverage by 0.03%.
The diff coverage is 40.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #67      +/-   ##
==========================================
- Coverage   27.67%   27.63%   -0.04%     
==========================================
  Files          12       12              
  Lines         990      995       +5     
  Branches      710      714       +4     
==========================================
+ Hits          274      275       +1     
+ Misses        259      258       -1     
- Partials      457      462       +5     
Impacted Files Coverage Δ
system_modes/src/system_modes/mode_manager.cpp 16.54% <40.00%> (+0.83%) ⬆️
system_modes/src/system_modes/mode_inference.cpp 34.87% <0.00%> (-0.55%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 02b4b3e...eca34d5. Read the comment docs.

Signed-off-by: Nordmann Arne (CR/ADT3) <arne.nordmann@de.bosch.com>
@norro norro requested a review from nielsvd April 6, 2021 08:05
Copy link
Collaborator

@nielsvd nielsvd left a comment

Choose a reason for hiding this comment

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

Check one open comment.

@norro norro merged commit 8ef3b27 into master Apr 6, 2021
@norro
Copy link
Collaborator Author

norro commented Apr 6, 2021

Thanks for the review, Niels!

@norro norro deleted the feature/prevent-redundant-mode-changes branch April 6, 2021 10:46
norro added a commit that referenced this pull request Apr 8, 2021
Backported master to dashing, version 0.6

* Introduces modes observer (#68)
* Mode manager prevents redundant mode changes (#67)
* Minor bugfix in inference
* Version bump to 0.6.0

Signed-off-by: Arne Nordmann <arne.nordmann@de.bosch.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prevent redundant mode changes
2 participants