Patrick created a new topic ' Using Pyindi to control a mount' in the forum. 2 years ago

Hi All,

Some of you already knows that I am a member of the 'Dimension Parabole' team who is working on a 10m dish in Paris (France).

Since 2018, we wrote a specific indi driver to control the antenna position just like any telescope, but we also wrote some Pyindi client to perform "special' tasks that have designed for our particular purpose.
For example, one of them performs a scan around a single object. This is very handy to prove that we are aiming in the desired position with no error !

In some of our Pyindi client, we have to do a simple task : 'wait until the antenna is in position'. This is not trivial as we move several tons, and the mount moves very slowly !

To do this, I use the following python line :
while (telescope_radec.s==PyIndi.IPS_BUSY):

When a move starts, the RADEC parameter becomes busy, and when the antenna arrives in position, it's status becomes OK (or IPS_OK).

It used to work fine for months (maybe a year), nut with the latest version of indi (and python), we havr the following error :


Traceback (most recent call last):
File "./cal29.py", line 427, in <module>
goto(AD_courant,Dec_courant)
File "./cal29.py", line 126, in goto
while Initial and (telescope_radec.s==PyIndi.IPS_IDLE) :
File "/home/pi/.local/lib/python3.7/site-packages/PyIndi.py", line 1449, in <lambda>
__getattr__ = lambda self, name: _swig_getattr(self, PropertyViewNumber, name)
File "/home/pi/.local/lib/python3.7/site-packages/PyIndi.py", line 80, in _swig_getattr
raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))
AttributeError: 'PropertyViewNumber' object has no attribute 's'

So, I have a couple of questions around this :
- Is there a better way to perform this test ?
- Is there a workaround to perform the 'in-motion' test on the latest releases ?

I wish you can help us in this problem !

Best regards to all.

Read More...