|
Posting what worked for me......Note that the pictures in the manual show the tops of the motors with a D shape, with the flat side against the chassis. This allows for the correct motor orientation with the correct PIN connections, but is impossible to align as there is a protrusion on that side which prevents the motor from mounting flush. Counter-intuitively, that orientation also exposes the motor wires to the wheels......
Mounting the motors with the flat of the D towards the exterior, allows flush mounting with the wires protected from the wheels, but reverses the movement directions (forward/back, right/left). These can be corrected in the move.py file by swapping the 1/0 values to the opposite values from the stock code:
- left_forward = 1
- left_backward = 0
- right_forward = 0
- right_backward= 1
Copy the Code |
|