Behaviors Driven Robotics (#178)

* adding avoid crash behavior

* more implementation

* add another simple behavior

* fixed synched motors

* bump common packages
This commit is contained in:
Peli de Halleux
2018-01-04 12:55:30 -08:00
committed by GitHub
parent 69f8453947
commit 7da811246c
10 changed files with 93 additions and 15 deletions

View File

@ -0,0 +1,12 @@
// EV3 specific test functions
tests.onEvent(TestEvent.RunSetUp, function() {
console.sendToScreen();
})
tests.onEvent(TestEvent.TestSetUp, function() {
motors.stopAllMotors();
motors.resetAllMotors();
})
tests.onEvent(TestEvent.TestTearDown, function() {
motors.stopAllMotors();
motors.resetAllMotors();
})