So with code for the compass, gps, and servo all bootloaded up on the arduino I ran my first test of the navigation software. And it seemed to kinda work?
With the compass and bearing calculations establishing that I turn to the right or more lefter on a consistent basis the servo writes should be no problem right?
Wrong...the servo write statement did turn the wheels of the car when I pointed the arduino in a particular direction relative to a point, but the servo has got some wacky jitters as I continue to move things around.
At first I thought that I must be near a degree value where the bearing that was being calculated was bouncing to the left and right of the heading reading or vice versa.
Creating an error correction value that would allow for readings to bounce + or - 5 degrees still didn't fix the issue. Don't know what I will do to fix it but for now I can get things to turn in the right direction even if they are a bit twitchy.
No comments:
Post a Comment