it is possible and I checked in Kstars "Settings/Geographic" and effectively there are Countries having offsets of 30' or 45'
At least I learned something today! I didn't remember Nepal having +05:45 or Western Australia +08:45 ... and I visited both countries !!!
Time modifying, doing testing and then push for review!
I fixed the UTCOffset so that now hh:00, hh:30 and hh:45 are supported.
I found a strange thing, UTC offset is rouded on 1st decimal so that 0,75 is 0,8 so I had to workaround that.
Not happy with it but it works
I have a problem that the internal time of OnStep cannot get by INDI.
Set the location and date and time in OnStep.
(My OnStep uses GPS so it's automatic.)
Then connect OnStep to INDI and look at the INDI Control Panel in Ekos.
UTC is not get correctly.
Is there a solution to the cause of this problem?
OnStep is version 4.24q.
INDI is 1.9.5 running on a Raspberry Pi.
Uses the LX200 OnStep driver.
Not sure about this particular issue, but in general, floating point math is very imprecise.
You may get some really unexpected results, e.g. instead of 2x2=4 you may get 3.999999008
The whole idea of pushing floating number back and forth for this use case is totally wrong and probably requires much bigger refactoring.
Thank you for the hint.
But, I couldn't solve that.
I tried setting "Time & Location Updates" in the KStars INDI option to "Mount updates KStars".
When I tried it with Celestron AVX, I can get the location information and date and time of the AVX controller settings. And KStars will display the stars where the AVX is placed.
For OnStep Driver, the time will always be "UNIX Epoch-1 second", so KStars will display the wrong stars.
It looks like it is failing to get the internal time of OnStep.
Does the INDI OnStep Driver not support getting the OnStep internal time?
I don't think this is due to Floatint Point Math but rather to some obscure ftoa() and atof() somewere between kstars / Ekos and Indi but I am not able to track it ...
By doing tests if I enter for example 3,75 into control panel everything is ok.
If I enter the same value via Geographic settings I get 1,8 in control panel and Indi
So must be in Ekos / Kstars but I can be wrong as many times
It is not OnStep that manages time and location but Indi so normally this should work.
I made the following test.
1) I did run Onstep as alway just to make sure Time / Location are as usual.
2) Disconnected OnStep and closed Kstars
3) Set my system location to Panama
4) Opened Kstars and set the Geographic Location to Panama
5) You can see Time in Time1.pgn
6) Started OnStep Driver see Time2.pgn
7) Connected OnStep see Time3.png
As you can see as soon I connect OnStep time is updates with Firmware Time