Skip to content

Commit

Permalink
add 10 second stop
Browse files Browse the repository at this point in the history
  • Loading branch information
tildezero committed Nov 21, 2024
1 parent e00b3e5 commit bfce107
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ void CommandSentryPosition::execute()
spin = 0.0f;
}

// don't move for 10 sec
if (getTimeMilliseconds() - startup_time < 10000.f)
{
move = Vector2f(0.0f);
}

if (drivers->isGameActive())
{
chassis->input(move, spin);
Expand Down

0 comments on commit bfce107

Please sign in to comment.