Closed OwenFeik closed 4 years ago
When running ev3sim controllable.yaml the simulator errors and exits.
ev3sim controllable.yaml
This occurs because the ControllableBot class calls self.compass.calibrate() in .onSpawn() before it has initialised it in .startUp().
ControllableBot
self.compass.calibrate()
.onSpawn()
.startUp()
This could be resolved by moving the calibration from onSpawn() to startUp().
onSpawn()
startUp()
Closed by #162
When running
ev3sim controllable.yaml
the simulator errors and exits.This occurs because the
ControllableBot
class callsself.compass.calibrate()
in.onSpawn()
before it has initialised it in.startUp()
.This could be resolved by moving the calibration from
onSpawn()
tostartUp()
.