@dpelgrift_567800 I actually already fixed the problem by adding a +180 to the first line of Pedestal::setTargetAz and it seems to be working properly now. I appreciate the recommendation though, hopefully it will help someone else if they run into the same issue.
@Zachmo_96414 Sorry to hear you're having issues. If it is just a problem with the magnetometer installed in reverse, that's easy to fix in software. If you go to pedestal.cpp, line 97 and change it from:
return atan2(compassEvent.magnetic.x,-compassEvent.magnetic.y) * RAD_TO_DEG;
to
return atan2(-compassEvent.magnetic.x,compassEvent.magnetic.y) * RAD_TO_DEG;
That should account for a flip in the magnetometer direction.
Otherwise, if you want to verify if the magnetometer is installed correctly, the last image in the project gallery shows the proper orientation. Please let me know if it still isn't working and I'd be happy to help sort it out.
Really cool project, but unfortunately I was never able to get the pointer to agree with any ISS tracking app that I found. It's hard to tell if this is due an issue with my setup or a software problem since the documentation is lacking, hopefully more gets added at some point.
Edit: I didn't want to take it apart to verify, but I'm pretty sure the problem was caused by the orientation of the compass module. I installed it in reverse so the North/South direction was swapped and caused it to point the wrong direction. (edited)