×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Using Pyindi to control a mount

  • Posts: 8
  • Thank you received: 1
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 have 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.
The following user(s) said Thank You: Jack
Last edit: 1 year 10 months ago by Patrick.
1 year 10 months ago #83420

Please Log in or Create an account to join the conversation.

  • Posts: 48
  • Thank you received: 6
Yes please, I too would like this answer.
1 year 10 months ago #83433

Please Log in or Create an account to join the conversation.

  • Posts: 1
  • Thank you received: 1
while (telescope_radec.getState()==PyIndi.IPS_BUSY):

seems to work...

-Dyer
The following user(s) said Thank You: Jack
1 year 10 months ago #83458

Please Log in or Create an account to join the conversation.

  • Posts: 8
  • Thank you received: 1
I would like to thank you for your answer.
Yes, it does work well here !
Perhaps, this is a better way to read the state of any parameter.
I wonder if there is a setState to change the state of a parameter, perhaps, I should use it too !

Thank you very much for your help!

Patrick for the 'Dimension Parabole' team.
1 year 10 months ago #83483

Please Log in or Create an account to join the conversation.

Time to create page: 0.613 seconds