I think this would be considered a maths question rather than a physics one.
For context, I am creating a calendar for a fantasy game that has $2$ moons. In my current case moon #1 orbital time is $28=(2*2*7)$ days, and moon #2 orbital time $77=(7*11)$ days. Both cycles begin at day $0$, so both moons are full every $2*2*7*11 = 308$ days. A year is currently $336$ days.
for ease of calculation, let's assume they are rotating around the same axis as the planet is spinning. and their rotational direction being the same. That way we can use a circle instead of a sphere.
How would one calculate a moon's position in the sky at a given day/time. (given in days from the start of time).
e.x. DAY=$123452.34$
I am thinking something along the lines of
moon position = ((The amount the planet has spun around itself since beginning of time in radians) - (The amount the moon has spun around the planet in radians)) modulo $2\pi$
which would make it:
moon #1 position = $(2\pi * (floor(DAY)-DAY) - 2\pi*$ (DAY modulo moon1.orbitTime) / moon1.orbitTime) modulo $2\pi$
Is it just this simple? I am assuming the difference between standing on the planets surface and not at its core is negligible. Considering that the radius of the earth is $7,000$ km and the real moon is $400,000$ km away would that be a reasonable assumption?
Also, does the fact that a year is divisible by moon #1's orbital time affect how frequent lunar eclipses are?
Here are my notes. I've managed to find $\theta_2$ as a function of $t$. But I'd like to find $\theta_1$ as a function of $r_1,r_2,t$
