darozak / Advolition

1 stars 0 forks source link

Create and manage action locks #12

Closed darozak closed 7 months ago

darozak commented 7 months ago

I need to lock down different types of actions while waiting for them to complete so that the action can't performed again until the active action is complete. For example, I need to prevent the robot from initiating a new move action while it is waiting for another move action to be completed.

darozak commented 7 months ago

Added action locks such as isMoving and isScanning that can set to true when the robot is engaged in one of these activities (https://github.com/darozak/Advolition/commit/b9afb066d01f86b1935aa1e4fa8b9ebef1d3f938).

darozak commented 7 months ago

Forgot to set isMoving back to true when the action is completed (https://github.com/darozak/Advolition/commit/301d60471bde8c0d1b64a2d39584cc940a0c81aa). Everything should be good now.