MelbourneHighSchoolRobotics / ev3sim

A simulator for soccer robots programmed with ev3dev.
https://ev3sim.mhsrobotics.club
Other
11 stars 8 forks source link

Controllable bot example fails #161

Closed OwenFeik closed 4 years ago

OwenFeik commented 4 years ago

When running ev3sim controllable.yaml the simulator errors and exits.

This occurs because the ControllableBot class calls self.compass.calibrate() in .onSpawn() before it has initialised it in .startUp().

This could be resolved by moving the calibration from onSpawn() to startUp().

glipR commented 4 years ago

Closed by #162