Hi, I get the following error messages when running move.py with the picar-x. Any help with this please?
Traceback (most recent call last):
File “/home/irene/picar-x/example/move.py”, line 7, in
px = Picarx()
File “/usr/local/lib/python3.9/dist-packages/picarx-0.0.1-py3.9.egg/picarx/picarx.py”, line 39, in init
self.camera_servo_pin1 = Servo(PWM(servo_pins[0]))
File “/usr/local/lib/python3.9/dist-packages/robot_hat-2.0.4-py3.9.egg/robot_hat/servo.py”, line 20, in init
super().init(channel, *args, **kwargs)
File “/usr/local/lib/python3.9/dist-packages/robot_hat-2.0.4-py3.9.egg/robot_hat/pwm.py”, line 43, in init
self.timer = int(channel/4)
TypeError: unsupported operand type(s) for /: ‘PWM’ and ‘int’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/home/irene/picar-x/example/move.py”, line 43, in
px.stop()
NameError: name ‘px’ is not defined