Problem With python manage.py drive

I’m knew to Donkeycar and need a little help. I’ve calibrated the throttle and motors, using a Sunfounder PiCar chassis and the recommended camera - Wide Angle Raspberry Pi Camera. Running python manage.py drive, this message appears shutting down the code “ZeroDivisionError: division by zero”. Any suggestions?

Also, is this the correct format for the web browser - raspberrypi.local:8887? I haven’t changed the host name.

Chuck

(env) pi@raspberrypi:~ cd mycar (env) pi@raspberrypi:~/mycar python manage.py drive
using donkey v3.1.2 …
loading config file: /home/pi/mycar/config.py
myconfig myconfig.py
loading personal config over-rides from myconfig.py

config loaded
cfg.CAMERA_TYPE PICAM
PiCamera loaded… .warming camera
Adding part PiCamera.
Starting Donkey Server… you can now go to raspberrypi.local:8887 to drive your car.
Adding part LocalWebController.
Adding part ThrottleFilter.
Adding part PilotCondition.
Adding part RecordTracker.
Adding part ImgPreProcess.
Adding part DriveMode.
Adding part AiLaunch.
Adding part AiRunCondition.
PWM Steering created
Init ESC
PWM Throttle created
Adding part PWMSteering.
Adding part PWMThrottle.
Tub does NOT exist. Creating new tub…
New tub created at: /home/pi/mycar/data/tub_5_20-07-13
Adding part TubWriter.
You can now go to :8887 to drive your car.
Starting vehicle at 20 Hz
/usr/lib/python3/dist-packages/picamera/encoders.py:544: PiCameraResolutionRounded: frame size rounded up from 160x120 to 160x128
width, height, fwidth, fheight)))
Traceback (most recent call last):
File “/home/pi/projects/donkeycar/donkeycar/vehicle.py”, line 151, in start
self.update_parts()
File “/home/pi/projects/donkeycar/donkeycar/vehicle.py”, line 197, in update_parts
outputs = p.run_threaded(*inputs)
File “/home/pi/projects/donkeycar/donkeycar/parts/actuator.py”, line 251, in run_threaded
self.min_pulse, self.zero_pulse)
File “/home/pi/projects/donkeycar/donkeycar/utils.py”, line 249, in map_range
XY_ratio = X_range/Y_range
ZeroDivisionError: division by zero
Shutting down vehicle and its parts…
Stopping PiCamera
division by zero
Part Profile Summary: (times in ms)
±-----±----±----±----±----±----±----±------+
| part | max | min | avg | 50% | 90% | 99% | 99.9% |
±-----±----±----±----±----±----±----±------+

BTW, camera is selected in system configuration. Also I verified the camera would take a 10 second video.

Chuck

I’ve been beating my head against a wall all day and can’t solve this problem. Help please!