Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1. Skysafari pushto #113

Merged
merged 25 commits into from
Jan 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
9580d7c
first steps
mrosseel Aug 23, 2023
a42e558
added sr/sd handling, no side-effect yet
mrosseel Aug 24, 2023
f377eab
working parsing
mrosseel Aug 28, 2023
72e4944
skysafari part works, ui_state is now shared. Locate screen/catalog i…
mrosseel Aug 31, 2023
73574ca
Merge remote-tracking branch 'upstream/main' into skysafari-pushto
mrosseel Sep 1, 2023
02ebe3c
Merge remote-tracking branch 'upstream/main' into skysafari-pushto
mrosseel Sep 3, 2023
e0cacc6
typo
mrosseel Sep 3, 2023
8c2c5dc
make catalog less db centric
mrosseel Sep 10, 2023
9c95c3c
Merge branch 'main' into skysafari-pushto
mrosseel Nov 8, 2023
4b0d303
ui state is working in manager
mrosseel Nov 13, 2023
90b2311
kinda works if you're already in catalog view
mrosseel Nov 13, 2023
7d46a5e
Merge remote-tracking branch 'upstream/main' into skysafari-pushto
mrosseel Nov 14, 2023
00608fd
merging
mrosseel Nov 14, 2023
124d1dc
ignore unknown commands in another way
mrosseel Nov 14, 2023
28863fe
first working version after refactor
mrosseel Dec 15, 2023
23efed0
some more bugfixes
mrosseel Dec 15, 2023
eed888f
Merge branch 'main' into skysafari-pushto
mrosseel Dec 15, 2023
0a530c5
merge with main with fake sys_utils to run on mac
mrosseel Dec 16, 2023
4a34efd
one more fix, pos_server debugging
mrosseel Dec 19, 2023
d90acfb
Merge branch 'fake_sys_utils' into skysafari-pushto
mrosseel Dec 19, 2023
11804bb
ui state fix
mrosseel Dec 20, 2023
548b933
Merge branch 'gps_lock_button' into skysafari-pushto
mrosseel Dec 20, 2023
fdd6dc5
add constellation, clean up logs, test and fix bugs
mrosseel Dec 29, 2023
f0466eb
Merge branch 'main' into skysafari-pushto
mrosseel Dec 30, 2023
c28d0fb
fix filtered dimming bug
mrosseel Dec 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions python/PiFinder/calc_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,30 @@ def radec_to_altaz(self, ra, dec, alt_only=False):
return alt, az


def ra_to_deg(ra_h, ra_m, ra_s):
ra_deg = ra_h
if ra_m > 0:
ra_deg += ra_m / 60
if ra_s > 0:
ra_deg += ra_s / 60 / 60
ra_deg *= 15

return ra_deg


def dec_to_deg(dec, dec_m, dec_s):
dec_deg = abs(dec)

if dec_m > 0:
dec_deg += dec_m / 60
if dec_s > 0:
dec_deg += dec_s / 60 / 60
if dec < 0:
dec_deg *= -1

return dec_deg


def ra_to_hms(ra):
if ra < 0.0:
ra = ra + 360
Expand Down
Loading