Skip to content

Commit

Permalink
Ignore imu on alignment screen, adjust menu, clean up debug
Browse files Browse the repository at this point in the history
  • Loading branch information
brickbots committed Dec 3, 2024
1 parent a9c5683 commit 90e6069
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 23 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ A plate solving telescope finder based around a Raspberry PI, imx296 camera, and

For an overview of what the PiFinder™ is and how it came to be visit the official project website at [PiFinder.io](https://www.pifinder.io/build-yours)

The PiFinder™ uses the [Ceder Detect](https://github.com/smroid/cedar-detect) and
[Cedar Solve](https://github.com/smroid/cedar-solve) libraries with express permission.
Thank you to [smroid] for all your support of the PiFinder project!

![Banner](./docs/source/images/PiFinder_v3_banner.png)
The PiFinder™ is my attempt to improve my time at my telescope. I don't get nearly enough of it and I want to enjoy it as much as possible. So after years of observing with paper charts and, later, a Nexus DSC here is what I felt I was missing:
* **Reliable telescope positioning:** The Nexus DSC is great, but my scope just isn't built for solid encoder integration. The slop in the way I have to couple the encoders means poor pointing accuracy.
Expand Down Expand Up @@ -45,4 +49,3 @@ If you'd like to learn more about how it works, and potentially build your own,
## Discord
Join the [PiFinder™ Discord server](https://discord.gg/Nk5fHcAtWD) for support with your build, usage questions, and suggestions for improvement.

<a href='https://ko-fi.com/brickbots' target='_blank'><img height='35' style='border:0px;height:46px;' src='https://az743702.vo.msecnd.net/cdn/kofi3.png?v=0' border='0' alt='Buy Me a Coffee at ko-fi.com' />
4 changes: 2 additions & 2 deletions python/PiFinder/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
from PiFinder import utils

sys.path.append(str(utils.tetra3_dir))
import tetra3
from tetra3 import cedar_detect_client
import tetra3
from tetra3 import cedar_detect_client

logger = logging.getLogger("Solver")

Expand Down
14 changes: 7 additions & 7 deletions python/PiFinder/ui/align.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def align_on_radec(ra, dec, command_queues, config_object, shared_state) -> bool
return False

# success, set all the things...
command_queues["console"].put("Alignment Set")
shared_state.set_solve_pixel(target_pixel)
config_object.set_option("solve_pixel", target_pixel)
return True
Expand All @@ -97,8 +98,8 @@ def __init__(self, *args, **kwargs):
self.star_list = np.empty((0, 2))
self.alignment_star = None
self.reticle_position = (
self.config_object.get_option("solve_pixel", (256, 256))[0] / 4,
self.config_object.get_option("solve_pixel", (256, 256))[1] / 4,
self.config_object.get_option("solve_pixel", (256, 256))[0] / 4,
)

# Marking menu definition
Expand All @@ -119,8 +120,9 @@ def draw_reticle(self):
return

if not self.align_mode:
self.reticle_position = self.starfield.radec_to_xy(
self.solution["RA"], self.solution["Dec"]
self.reticle_position = (
self.config_object.get_option("solve_pixel", (256, 256))[1] / 4,
self.config_object.get_option("solve_pixel", (256, 256))[0] / 4,
)

x_pos = round(self.reticle_position[0])
Expand Down Expand Up @@ -179,9 +181,7 @@ def update(self, force=False):

if self.shared_state.solve_state():
self.animate_fov()
constellation_brightness = self.config_object.get_option(
"chart_constellations", 64
)
constellation_brightness = 64
self.solution = self.shared_state.solution()
last_solve_time = self.solution["solve_time"]
if (
Expand All @@ -206,7 +206,7 @@ def update(self, force=False):
self.screen.paste(image_obj)

self.last_update = last_solve_time
self.draw_reticle()
self.draw_reticle()

else:
self.draw.rectangle(
Expand Down
13 changes: 0 additions & 13 deletions python/PiFinder/ui/menu_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -857,19 +857,6 @@
},
],
},
{
"name": "Experimental",
"class": UITextMenu,
"select": "Single",
"items": [
{
"name": "Align",
"class": UIAlign,
"stateful": True,
"preload": True,
},
],
},
],
},
],
Expand Down

0 comments on commit 90e6069

Please sign in to comment.