Federica created a new topic ' CUSTOM TRACKING' in the forum. 4 years ago

Hello,
I was implementing the custom tracking on my python code.

I saw from the standard properties that TELESCOPE_TRACK_RATE is a Switch, therefore I wrote

trackrate = telescope.getSwitch("TELESCOPE_TRACK_RATE")

and then
trackrate[0].s = PyIndi.ISS_OFF
trackrate[1].s = PyIndi.ISS_OFF
trackrate[2].s = PyIndi.ISS_OFF
trackrate[3].s = PyIndi.ISS_ON

but it returns

trackrate.s[0] = PyIndi.ISS_OFF
TypeError: 'NoneType' object is not subscriptable.

What am I doing wrong?

Read More...