Welcome, Guest
Username: Password: Remember me
20 Aug 2017
INDI development team is happy to announce the release of INDI Library v1.5.0. This new exciting release builds on the maturity of INDI Library and comes with many new supported devices and fixes for existing drivers.
Read More...

TOPIC: 10Micron Mount Modelling

10Micron Mount Modelling 2 months 3 weeks ago #18865

Jasem,

if I use the Bus interface of EKOS from my understanding there is no need for INDI (because I get all from that one interface). I guess, that I could access all Dbus API's via TCP connection. Is that right ?

Michel

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

10Micron Mount Modelling 2 months 3 weeks ago #18866

Michael,

From Python, you can communicate communicate with the DBus interface. Here is a tutorial about using the INDI DBus interface in KStars. But you'd want to use the Ekos DBus interface since the INDI interface is considered low level.
The following user(s) said Thank You: dolguldur

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

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?

10Micron Mount Modelling 2 months 3 weeks ago #18867

Jasem,

that's right if you stay on pure linux (or BSD) based systems. But MW support windows as well and I would stay with an OS independent solution if I am leaving the windows environment. So accessing Dbus from python is still a learning curve for me, but having a native python implementation for a remote Dbus client is really tricky. All other imaging suites offering a REST API for remote control, which makes thing much more easy. Is there anything like that in EKOS ?

Michel

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

10Micron Mount Modelling 2 months 3 weeks ago #18868

Currently there is no such system. I suppose one could wrap the DBus calls in REST API with a micro framework like Bottle py

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

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?

10Micron Mount Modelling 2 months 3 weeks ago #18871

  • H__
  • H__'s Avatar
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 27
  • Thank you received: 7
Hi Michel,

mworion wrote: ... With the SOFA library I would do a C to python translation myself over time if there is no solution available. First I have to ask the guys at SOFA to get the allowance to use it in MountWizzard.


I propose to use ERFA instead : github.com/liberfa/erfa "ERFA is a C library containing key algorithms for astronomy, and is based on the SOFA library published by the International Astronomical Union (IAU).
ERFA is intended to replicate the functionality of SOFA (aside from possible bugfixes in ERFA that have not yet been included in SOFA), but is licensed under a three-clause BSD license to enable its compatibility with a wide range of open source licenses. Permission for this release has been obtained from the SOFA board, and is avilable in the LICENSE file included in this source distribution."

I've tested ERFA myself and it gives the same results as SOFA github.com/d33psky/J2000-JNow

-- Hans

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

10Micron Mount Modelling 2 months 3 weeks ago #19017

  • H__
  • H__'s Avatar
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 27
  • Thank you received: 7
HI all,

For 10Micron mount modelling we need to add the following functionality to the driver :

First store the temperature and pressure. This will get used by :newalpt and/or :endalig# lateron.
  • :SRTMPsTTT.T# Sets the tempreature at the location of the telescope used in the refraction model to sTTT.T degrees Celsius. Returns 1# if OK, 0# on error.
  • :SRPRSPPPP.P# Sets the atmospheric pressure at the location of the telescope used in the refraction model to PPPP.P hPa. Returns 1# if OK, 0# on error.
Begin a new alignment specification. (This will not clear the active alignment model the mount is using.)
  • :newalig# returns V#
Next loop over up to 100 alignment points, per point get mount RA/DEC, pier side, local sidereal time, plate-solved RA/DEC (*) and store :newalpt
  • :GR# get mount right ascension. Returns HH:MM:SS.SS# (hours, minutes, seconds and hundredths of seconds)
  • :GD# get mount declination. Returns sDD:MM:SS.S# (degrees, arcminutes, arcseconds and tenths of arcsecond)
  • :pS# Pier side. Returns string "East#" or "West#"
  • :GS# Get local sidereal time
  • :newalptMRA,MDEC,MSIDE,PRA,PDEC,SIDTIME# Returns nnn# if OK with nnn the number of active points, E# if not
With
  1. MRA - the mount-reported right ascension, expressed as HH:MM:SS.S
  2. MDEC - the mount-reported declination, expressed as sDD:MM:SS
  3. MSIDE - the mount-reported pier side (the letter 'E' or 'W', as reported by the :pS# command)
  4. PRA - the plate-solved right ascension (i.e. the right ascension the telescope was effectively pointing to), expressed as HH:MM:SS.S
  5. PDEC - the plate-solved declination (i.e. the declination the telescope was effectively pointing to), expressed as sDD:MM:SS
  6. SIDTIME - the local sidereal time at the time of the measurement of the point, expressed as HH:MM:SS.S
End the new alignment model and compute a new alignment from the given alignment points.
  • :endalig# returns V# if new alignment model has been computed OK
Save the model.
  • :modeldel0NAME# DELete a model with name NAME (up to 15 case sensitive characters, spaces allowed). Returns 1# if OK, 0# on error
  • :modelsv0NAME# SaVe the model with name NAME. Returns 1# if OK, 0# on error
(*) We need to transform plate-solved J2000.0 coordinates to JNow as input for the :newalpt PRA ad PDEC parameters and JNow as SIDERES, however in this transformation we need to deliberately ignore everything that is related to refraction (like temperature, pressure, humidity, wavelength) and only correct for precession, nutation and light aberration. This can be done with SOFA/ERFA Atci13, or with Atco13 when all its refratcion parameters are set to 0.
The 10Micron mount then receives these 'half transformed' coordinates and corrects for refraction with the temperature and pressure it was given earlier with :SRTMP and :SRPRS (ignoring things like humidity and wavelength).

Lateron we can add functionality to manage the models with these
  • :getalst# Gets the number of alignment stars used in the current alignment model. Returns n#
  • :delalig# Deletes the current alignment model and stars. Returns #
  • :getalpN# Gets alignment information for star number N. Returns: E# on error or "HH:MM:SS.SS,+dd*mm:ss.s,eeee.e,ppp#" where HH:MM:SS.SS is the hour angle of the alignment star in hours, minutes, seconds and hundredths of second (from 0h to 23h59m59.99s), +dd*mm:ss.s is the declination of the alignment star in degrees, arcminutes, arcseconds and tenths of arcsecond, eeee.e is the error between the star and the alignment model in arcseconds, ppp is the polar angle of the measured star with respect to the modeled star in the equatorial system in degrees from 0 to 359 (0 towards the north pole, 90 towards east).
  • :delalstN# Delete alignment star N and recalculate the model. Returns 1# if OK, 0# on error
  • :modelcnt# Gets the number of alignment models. Returns: n#
  • :modelnamN# Returns the name of model number N or just # on error.
  • :modelld0NAME# Loads the model with the given NAME. Returns 1# if OK, 0# on error

I intend to add all this to the INDI driver. Does this line up with the EKOS Mount Modelling tool ?

-- Hans

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

10Micron Mount Modelling 2 months 3 weeks ago #19018

Sounds good so far. Why an external library is required for J2000 to JNow conversion? This is done in KStars.

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

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?

10Micron Mount Modelling 1 month 1 day ago #20363

Hi all,

just a short heartbeat from MountWizzard and support for INDI: So far the connections is made, I could take pictures via IP from EKOS. Still not that advanced
as I liked it to be, because there are some informations missing about camera status etc. Next steps would be to integrate MBox (refraction data) and telescope driver (for simulation purpose. Hope you will see a running beta soon.

BTW: MountWizzard runs now on Windows / MAC / Linux using QT and python 3.5

Michel
The following user(s) said Thank You: knro, H__

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

10Micron Mount Modelling 4 weeks 2 days ago #20391

  • H__
  • H__'s Avatar
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 27
  • Thank you received: 7
I've added basic alignment building to the driver. I want to test it first before making a pull request to merge it into the main INDI tree. I hope that my skies allow for that soon ;-)

-- Hans
Attachments:
The following user(s) said Thank You: dolguldur

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

10Micron Mount Modelling 4 weeks 2 days ago #20408

Hi Hans,

nice work ! Do you support refraction update as well ?

Michel

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

10Micron Mount Modelling 4 weeks 2 days ago #20409

  • H__
  • H__'s Avatar
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 27
  • Thank you received: 7
Hi Michel, I'm not exactly sure what you mean, the driver so far is just an interface to the 10Micron API meaning that :newalpt wants the plate solved J2000 coordinates to be corrected for precession, nutation and light aberration in JNow, but not corrected for refraction in any way.
I would like to add the J2000->JNow(precession, nutation and light aberration) to INDI by adding (parts of) ERFA to INDI, but that would also make INDI quite a bit larger and I doubt 'the other INDI devs' want that.
-- Hans

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

10Micron Mount Modelling 4 weeks 2 days ago #20412

Hans,

the ASCOM drivers on windows should be able to update the pressure and temp for refraction correction to the mount automatically. Does this your driver, too ?

Michel

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

Time to create page: 0.403 seconds

Login



3rd Party

Choose from the numerous 3rd party INDI drivers to suit your needs!

Got Problem?

Check out the FAQ, the forum, and the bug tracking system to resolve any issues you might have!
You can also subscribe to INDI newsletter and development mailing lists to get the latest updates on INDI!


Gallery

Replica

Why INDI

Replica