Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Add Semaphore-Like Behavior For Manual Overrides #172

Open
Litemage opened this issue Mar 5, 2023 · 0 comments
Open

Add Semaphore-Like Behavior For Manual Overrides #172

Litemage opened this issue Mar 5, 2023 · 0 comments
Labels

Comments

@Litemage
Copy link
Contributor

Litemage commented Mar 5, 2023

All of our subsystems that use closed-loop control somehow use a manual override system to flag to other functions that the robot is under manual control and should not perform any closed loop control. Maybe we could add an interface that all of our subsystems (that use closed-loop control) should inherit, which will add a flag that tracks manual control and is accessed with functions like:
GetIsManuallyOverriden()
TakeManualOverride()
ReleaseManualOverride()

Obviously the names are a little wonky, but the concept is there. We get the status with GetIsManuallyOverriden() override the system with TakeManualOverride() and allow closed loop control again with ReleaseManualOverride() all functions that implement closed loop in the subsystem will check these functions before doing any closed loop.

@Litemage Litemage changed the title Add Mutex-Like Behavior For Manual Overrides Add Semaphore-Like Behavior For Manual Overrides Mar 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant