In this PR, a lock mechanism is added to the PDO poller so the samples can not be modified during the data is being read.
Fixes # INGM-460
Type of change
[x] Add Lock mechanism in the PDO poller
Tests
[x] Test it with ML3.
[x] Run tests.
Please describe the tests that you ran to verify your changes if it applies.
Documentation
Please update the documentation.
[x] Update docstrings of every function, method or class that change.
[x] USe type hints for every function and argument.
[x] Build documentation locally to verify changes.
[x] Add the changes at the [Unreleased] section of the CHANGELOG.
Code formatting
[x] Use black package to format the code: black -l 100 ingeniamotion tests. It is recommended to configure the code editor to automatically format the code using black with a max length line of 100.
Add Lock mechanism in the PDO poller
Description
In this PR, a lock mechanism is added to the PDO poller so the samples can not be modified during the data is being read.
Fixes # INGM-460
Type of change
Tests
Please describe the tests that you ran to verify your changes if it applies.
Documentation
Please update the documentation.
[Unreleased]
section of the CHANGELOG.Code formatting
black -l 100 ingeniamotion tests
. It is recommended to configure the code editor to automatically format the code using black with a max length line of 100.Others