Heeeelp! When the site controller is connected, the manual control program ends, how does the program control the v5 motor lock.
When a field controller puts a robot in “disabled” mode (after a match ends), it will force all v5 motors into “coast” mode (preventing any voltage commands from being sent to motors). This is enforced on a vexos level and it’s not possible to legally circumvent it. If you need to prevent a mechanism from turning after the match ends, I’d recommend something like a high torque ratchet or pneumatic clamp rather than relying on motor braking.
When the robot is in disable mode at the end of the match, the motors have no power and therefore can not be in hold mode at this point.
You need to come up with a passive way to lock your mechanism, something that doesn’t need power.
Worm gears typically can’t be back-driven. I’d give that a STRONG consideration.