×

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

Bi-monthly release with minor bug fixes and improvements

Clear align points via pyindi-clients

  • Posts: 3
  • Thank you received: 0
Hello

I'm using EQ6-R and kstars+ekos+indi+eqmod, and I want to send from python using pyindi-client command which clear points list in indi-eqmod (in GUI it's under "Align" tab -> "Clear list" button).

I tried to do some reverse-engineering and I've found that it's done in following steps:
pointset->Reset();
pointset->setBlobData(AlignDataBP);
IUFindNumber(AlignCountNP, "ALIGNCOUNT_POINTS")->value = pointset->getNbPoints();
IUFindNumber(AlignCountNP, "ALIGNCOUNT_TRIANGLES")->value = pointset->getNbTriangles();
IDSetNumber(AlignCountNP, NULL);

and that's the place where I've gave up :) I don't know how to call that function from PointSet... I'd appreciate if someone could help me how to do that using pyindi-client
1 year 5 months ago #87453

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

The property in question is ALIGNLIST, you just need to set ALIGNLIST.ALIGNLISTCLEAR to ISS_ON and that would clear the list.

You can run indi_getprop to get a list of properties and indi_setprop to set them as well.
indi_setprop "EQMod Mount.ALIGNLIST.ALIGNLISTCLEAR=On"
The following user(s) said Thank You: Lucas
Last edit: 1 year 5 months ago by Jasem Mutlaq.
1 year 5 months ago #87463

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

Time to create page: 0.540 seconds