Skip to content

pi_roamer_01.py in Chapter 7 #1

@MVL62

Description

@MVL62

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions