Skip to content

Commit 610c7f1

Browse files
committed
Bugfix: Do not immediately continue after stop
1 parent e3fb87e commit 610c7f1

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

internal/app/engine/process_runningtostop.go

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package engine
22

33
import (
44
"github.com/RoboCup-SSL/ssl-game-controller/internal/app/geom"
5-
"github.com/RoboCup-SSL/ssl-game-controller/internal/app/state"
65
"github.com/RoboCup-SSL/ssl-game-controller/internal/app/statemachine"
76
"log"
87
)
@@ -20,25 +19,6 @@ func (e *Engine) processRunningToStop() {
2019
StartBallPlacement: &statemachine.StartBallPlacement{},
2120
},
2221
})
23-
} else {
24-
log.Printf("Ball is already placed, no need for ball placement")
25-
if e.currentState.GetAutoContinue() {
26-
e.Enqueue(&statemachine.Change{
27-
Origin: &changeOriginEngine,
28-
Change: &statemachine.Change_Continue{
29-
Continue: &statemachine.Continue{},
30-
},
31-
})
32-
} else {
33-
e.Enqueue(&statemachine.Change{
34-
Origin: &changeOriginEngine,
35-
Change: &statemachine.Change_NewCommand{
36-
NewCommand: &statemachine.NewCommand{
37-
Command: state.NewCommandNeutral(state.Command_STOP),
38-
},
39-
},
40-
})
41-
}
4222
}
4323
}
4424

0 commit comments

Comments
 (0)