HuskieRobotics / SPOT

Apache License 2.0
25 stars 21 forks source link

Configure delay after map-selected action #60

Open 1Ghasthunter1 opened 2 years ago

1Ghasthunter1 commented 2 years ago

Whenever an action that invokes the map is pressed, a green border appears for about a second, disabling any presses, and then disappears. Is there any way to configure this?

1Ghasthunter1 commented 2 years ago

The original lock-out delay definition is found:

in ./src/scouting/executables/position.js, POSITION_LOCK_DELAY_MS defines this lockout. Ideally, we could change this from the config file.

nithilan4 commented 2 years ago

This is the "position lock" feature. It doesn't disable presses, it just doesn't prompt the position screen asking for the position of the robot because it's safe to assume that the robot hasn't moved in that duration between presses. We'll add configuration to the list, thanks.

By the way, you should check out the spot-v0.3.1 branch for a bunch of bug fixes and ease of use features as well as some analysis modules. We'll push this to main shortly. Thanks for using SPOT.