×
INDI Library v1.8.1 Released (09 Sep 2019)

Monthly maintenance release INDI v1.8.1

Next dumb question - how does dome simulator get its az from Indi?

7 months 3 weeks ago
pmeloy
Fresh Boarder
Fresh Boarder
Posts: 9
More
Topic Author
Next dumb question - how does dome simulator get its az from Indi? #37939
Just trying to suss out how Indi works. I'm looking through all the dome examples and drivers and reading the manual but I just can't seem to find the part where domes get their Az handed to them...

I thought it would be snoop since you have to tell a dome to snoop on a scope before it can track it but I can't find the snoop code in any of the domes so I guess that's not it. What am I missing?

Thanks!

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

7 months 3 weeks ago
jpaana
Gold Boarder
Gold Boarder
Posts: 220
Karma: 5
More
Next dumb question - how does dome simulator get its az from Indi? #37946
INDI Dome base class snoops the telescope coordinates and calculates the needed dome azimuth in GetTargetAz function which is then set to the dome via driver's MoveAbs function. The code is in Dome::UpdateAutoSync() in indidome.cpp.

Remote observatory running Ubuntu 19.10 x64 with ScopeDome 2M, Skywatcher EQ8 and HEQ5, TS 8" RC, Atik 383L+, ASI178MC, ASI120MM-S, SX Lodestar X2, SX USB wheel with OAG, ZWO EAF, USB_Focus V3, Gemini SnapCap, USB_DewPoint, KomaHub
The following user(s) said Thank You knro, pmeloy

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

7 months 3 weeks ago
ChrisRowland
Gold Boarder
Gold Boarder
Posts: 249
Karma: 7
More
Next dumb question - how does dome simulator get its az from Indi? #37947
The dome azimuth can be different to the mount azimuth because the mount may be offset from the centre of the dome and in the case of a German Equatorial mount (The one with the telescope and a counterweight on opposite sides) will vary depending on the pier side.

What happens is that the dome azimuth is calculated from the mount ra and Dec, pier side, time, location and mount position in the dome. This is all dome in the base dome implementation, which all dome drivers are based on, so you won't see it in the individual dome drivers.
The following user(s) said Thank You knro

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

7 months 3 weeks ago 7 months 3 weeks ago by pmeloy.
pmeloy
Fresh Boarder
Fresh Boarder
Posts: 9
More
Topic Author
Next dumb question - how does dome simulator get its az from Indi? #37964
Ah I think I'm catching on a little more now.

I knew that Indi calculated the dome azimuth based on the scope and dome geometries, I just can't figure out how that value was getting to the child dome driver. It's probably my unfamiliarity with real C++ (Only used the Arduino version).

I'm looking at dome::MoveAbs() in Indidome which I imagine is what tells the child to do but I'm not seeing anything that looks like it calls the child's MoveAbs() method or sets the az in it.

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

7 months 3 weeks ago 7 months 3 weeks ago by pmeloy.
pmeloy
Fresh Boarder
Fresh Boarder
Posts: 9
More
Topic Author
Next dumb question - how does dome simulator get its az from Indi? #37965
Ahha! The light comes on!

Indidome::MoveAbs() doesn't call the child MoveAbs() or pass the az along because its a virtual method that has been overridden by the child's MoveAbs().

Sorry. The name "virtual" seems completely inappropriate for what it does. Why didn't they use "Overridable" since that's what it really means and you even use "override" to specify you're overriding the virtual method?
The following user(s) said Thank You pentaxian23

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

7 months 2 weeks ago
pmeloy
Fresh Boarder
Fresh Boarder
Posts: 9
More
Topic Author
Next dumb question - how does dome simulator get its az from Indi? #38005
What my base problem was is that I've never actually used inheritance to expand or modify a class so I my brain was stuck on thinking of the parent as a calling class and I was trying to find where it calls the dome driver. I knew about inheritance but it just wasn't reaching surface thoughts.

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

Time to create page: 0.805 seconds