Skip to content

Conversation

@v4hn
Copy link
Member

@v4hn v4hn commented Aug 10, 2022

Replaces #377

It's ridiculous this was still open.

there is no need for an `initialized_` flag, because the controller manager
will call `starting` to indicate the first iteration of a control cycle.

The controller already does the correct thing in `starting`. If instead the
code in `starting` were removed, and the `initialized_` flag kept, then this
position controller would (incorrectly) jump to the previous set point if it is
stopped and started (for example, if you hit and release the run-stop), since
the `initialized_` flag was only being cleared in the constructor.
@v4hn v4hn force-pushed the pos_controller_no_redundant_init_melodic branch from 6688394 to 5548003 Compare August 10, 2022 15:07
@v4hn v4hn closed this Aug 11, 2022
@v4hn v4hn reopened this Aug 11, 2022
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.

2 participants