From my comfy armchair, with zero experience in this field, it seems like you could use star tracking to very accurately predict the angle of the sun (since the sun is effectively fixed in position relative to the background stars over the timescales you'd care about). Spotting the target is a little harder, but the same measurement could be made by sticking some reflectors in known positions around the target.
I'm sure there are tons of considerations that aren't occurring to me (for instance, thermal expansion likely contributes substantially to making it a moving target (literally)), but I really don't see where "AI" comes into it...