Using the book, "Make an Arduino-Controlled Robot" by Michael Margolis I did the following.
In the motor test I get the expected result:
Left side wheels move forward
Right side wheels move backwards
I am trying a different ultrasound sensor and since the new code i wrote didn't work, I am trying to test my setup with the code in the book.
Since my sensor code may be incorrect I wanted to test the forward movement code. in MyRobotWander.,
I commented out the functions: lookBegin, moveBegin, roam so to only run the moveForward function.
I expected the wheels to all move forward but I get only two wheels moving.
The rear left wheel moves forward and the right rear wheel moves backward.
I modified the RobotMotor.h file for 4WD for the 4WD define as noted.
Advice ? Thank you very much.
Help get this topic noticed by sharing it on Twitter, Facebook, or email.
I passed your message on to the author and he replied with the following note:
moveBegin should not be commented out. If that does not get all four
wheels going, try the motor test again to see if all the wheels are still
working. If they are, try the HelloRobot sketch. If that works then look
closely into exactly what is being changed in the roam sketch.
I hope this helps
O'Reilly Book Support