Hi there - I think I know the answer to this but thought I'd confirm - can you specify altaz coordinates in PyIndi and have the telescope slew to them? I tried the following:
# Set the desired coordinates
telescope_altaz=device_telescope.getNumber("HORIZONTAL_COORD")
while not(telescope_altaz):
time.sleep(0.5)
telescope_altaz=device_telescope.getNumber("HORIZONTAL_COORD")
telescope_altaz[0].value=startAltAz['altitude']
telescope_altaz[1].value=startAltAz['azimuth']
indiclient.sendNewNumber(telescope_altaz)
# and wait for the scope has finished moving
while (telescope_altaz.getState()==PyIndi.IPS_BUSY):
print("Scope Moving ", telescope_altaz[0].value, telescope_altaz[1].value)
time.sleep(2)
But the scope doesn't move. So I imagine not - the KStars client does slew to Altaz coords for automated flats. or is that just calculating a RA and DEC based on the AltAz coords desired and slews to that? I know I've got good connections and stuff since I can park and unpark the scope but this isn't working for me. Any input appreciated thanks!
If you have a mount that is dual mode, you may have to set it to Alt/Az mode before it will work. The control might not become valid until it is switched.
You may need to set ON_COORD_SET (switch) to SLEW. The default is TRACK in the simulator. You may also want to ensure it is unparked (TELESCOPE_PARK switch). Also, verify the slew rate (TELESCOPE_SLEW_RATE switch).
Unfortunately, the telescope simulator does not appear to support the Alt/Az mode, so there is no good test case.
Thanks Aaron I'll check the indicated settings however I think perhaps using polar coords converted from the desired altaz might be more generic anyway, so I'll do that.