×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

WriteParkData() destroying ParkData.xml (custom driver)

  • Posts: 456
  • Thank you received: 76
This is not a problem in INDI, rather a problem in my roof driver that I cant seem to find.
Basically when I park/unpark my roof driver I end up with a ParkData.xml like this
<parkdata>
    <device name="">
        <parkstatus>
false
        </parkstatus>
    </device>
</parkdata>
This is a problem because I loose the telescope park status (it deletes all other <device> elements in the file). I'm working around by manually copying a good ParkData.xml after I open the roof but this is not great....

After trying to find what is happening I think it is something to do with the getDeviceName() returning null for my roof driver for some reason.
I'm sure its something I'm missing in my driver's code or build config but I cant seem to find what it could be.

Anyone have any ideas?
Thanks,
Derek

P.S. source for my driver is here github.com/dokeeffe/indi-aldiroof
Last edit: 6 years 6 months ago by Derek.
6 years 6 months ago #19495

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

  • Posts: 2247
  • Thank you received: 223
Going to subscribe to this as I am using your driver, I never paid attention to this issue, I will have to check.
6 years 6 months ago #19496

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

This is weird.. I swear I posted a reply to this topic like an hour ago and now I can't find anything.

Anyway, there was a small issue in INDI::Dome which was fixed and you need to call initPark() in your setupParams(). So recompile INDI then recompile your driver and you're good to go.
The following user(s) said Thank You: Derek
6 years 6 months ago #19506

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

  • Posts: 456
  • Thank you received: 76
Thanks Jasem, that fixed it!
Derek
The following user(s) said Thank You: Gonzothegreat
6 years 6 months ago #19641

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

  • Posts: 2247
  • Thank you received: 223

Thanks, I've also amended my side. I do need to review my github repos and update stuff.... :D
6 years 6 months ago #19642

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

Time to create page: 0.544 seconds