Having a servo problem...
Yojimbo
Posts: 40
I can't seem to get my robot to navigate properly using a library file I made. I think everything is correct, but it only seems to execute the first two manuvers in the Pingtest2.java program. It go turn both right, left, and go forward, but it keeps hanging or something after the first two. Any ideas would be appreciated. Thank you, and Happy New Year!
-Sean
PS
Ping.java and Navi.java are the two library files.
-Sean
PS
Ping.java and Navi.java are the two library files.
Comments
That is an error.
Use method
··PWM(int pin, int highTime, int lowTime)
to start it running when you create/define your PWM.
Then you can remove the start() calls after update() calls.
regards peter
constructs like
······· System.out.println(n + " Right Turn.");
will create temporary strings that are only used once.
Use
· System.out.print(n);
· System.out.println(" Right Turn.");
regards peter
·