×

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

Bi-monthly release with minor bug fixes and improvements

Getting latitude property of telescope from a dome driver

  • Posts: 64
  • Thank you received: 9
I need to get the latitude of the scope (LocationN[LOCATION_LATITUDE] property) from a dome driver. What is the right way?
Thanks for any help.
6 years 4 months ago #21405

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

You don't need to do anything, it's already there in the observer struct variable. To read it:
double myLatitude = observer.lat;
The following user(s) said Thank You: Fabrizio
6 years 4 months ago #21407

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

  • Posts: 64
  • Thank you received: 9
i noticed that the observer struct variable is declared as private by INDI::Dome. So derived classes cannot access it.
6 years 4 months ago #21497

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

They should be protected variables now (in Git). Check it out.
6 years 4 months ago #21519

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

Time to create page: 0.146 seconds