I've followed the book carefully, and now when I try to run "pi_roamer_01.py" file (Chapter 7), I get numerous errors. I think I've solved some but now I get "TypeError: 'NoneType' object is not callable for line 54 motors[0].throttle(motorSpeed[0])", which I can't solve. Any help would be appreciated.
Other errors include indentation errors for lines 68 onwards, missing parentheses on line 69, NameError: name 'motors' is not defined on line 51, Unused variable 'm1Speed' etc on lines 40 through 59 etc.
Many code errors in this book. These errors existed in the 1st edition and now more in the 2nd edition.
I've followed the book carefully, and now when I try to run "pi_roamer_01.py" file (Chapter 7), I get numerous errors. I think I've solved some but now I get "TypeError: 'NoneType' object is not callable for line 54 motors[0].throttle(motorSpeed[0])", which I can't solve. Any help would be appreciated.
Other errors include indentation errors for lines 68 onwards, missing parentheses on line 69, NameError: name 'motors' is not defined on line 51, Unused variable 'm1Speed' etc on lines 40 through 59 etc.
Many code errors in this book. These errors existed in the 1st edition and now more in the 2nd edition.