Skip to content

Commit

Permalink
Add option for az arrow reversal (#262)
Browse files Browse the repository at this point in the history
* Remove align related prints

* GPS async processing (#237)

* Remove active from state, put solver in loop.

Fix typos and nox redefinition error

* Restore logconf

* Crashes on HardwarePWM

* gps rewrite

* wrap the generators

* async gps

* async gps

* merge troubles

* ignore hip_main.dat

* SKY should leave time for TPV to run

* No await for queue ops

* Use other error info for faster lock

* hdop and pdop getting it from sky

* Fix logging

* Fix wifi password with equals sign crash (#239)

* Fix #238

* Fix whitespace parsing issues with re

* Remove print statements as per PR review

* Add missing flat camera tray, pi_sugar spacer, and adjust pimount gps holder

* Formatting

* Fix align, and promot in menus (#244)

* Remove bg image on obj details, improve contrast on logging stars (#245)

* Refactor sleep into specific manager class (#246)

* Align fix Pt 2 (#247)

* Refactor sleep into specific manager class

* Fix align, and promot in menus

* Improve reliability of align in questionable solve conditions

* Remove debug print

* 1. comets (#198)

* Abstract color modifiers, line numbers to support nearby mode

* Remove focus method

* Trying sorting option visualisation

* Used now MagnitudeObject, used new setup way everywhere.

* Fix unit tests

* nox passes now

* Correct unit test

* Fix linting

* Extract nearby code in class.

Implement update criteria and make it actually  update.
Make updating 1000x faster by limiting to only 100 nearby objects.

* nox reformatting

* Return empty list for sorting nearby without solution

* Changed Debug camera behaviour.

- there are now 3 images: debug1 - debug3
- 2 images solve, one doesn't
- all images stay the same for 5 seconds. This is to be able to visually
  test nearby and other location dependent views.

* Add missing soft links

* Sped up nearby by ~400x, fixed planet nearby.

Also removed old nearby code and put nearby classes there.

* Testing long up and long down

* Working comets, still mag issues

* Finding ways to speed up comet calcs

* Add TimerCatalog, cleanup

* further debugging

* missing import

* Migrate PyHotkey code to latest release

* Add sleeping to timed catalogs, probably not best solution

* fix part of diff to main

* another main diff fix

* Working and cleaned up comets

* Fix crash due to optional removal

* Small logging changes, reinstate fake gps on fake hardware

* Move all comet related code to comets.py

* Better sys_utils handling

* Fix possible deadlock, reduce logging

* Show comet data age, object count

* cleanup

* 2. Restart (#243)



* Add restart option

* 2. Skysafari crash (#242)


* Fix possible deadlock, reduce logging

* Rewrite pos_server loop to be more robust for disconnects.

Also added test script

* Larger GPS antenna holder

* Add v3 Kicad files

* Fix mis-labeld restart

* Add User Observing Equipment Config (#252)

* Add equipment tracking

* Fix up active equipment serialization, add some calculation functions

* Switch eyepiece FL to floatf'

* Update JLCPCB pos (pick and place) and BOM csv files

* Adding test step file

* fix docs typo

* Updating build guide for v2.5 camera

* Ignore import error for tetra3 in mypy

* Remove mypy ignore

* Small fixes to developer documentation (#258)

* Mention option to develop on windows.

* How to run Documentation locally

* Revert "How to run Documentation locally"

This reverts commit 75892ae.

* The docs are build automatically.

* Equipment  (#255)

* Add equipment support in the web interface.

* Add missing equipment.tpl file and fix nox error.

* Add missing equipment.tpl file and fix nox error.

* Default mount for import from DeepskyLog is Alt/Az.

* Add telescope and eyepiece information to the PiFinder interface.

* Select telescope and eyepiece from the PiFinder screen.

* Remove make from name on PiFinder screen.

* Remove make from name on PiFinder screen.

* Use one of the configured eyepieces when logging an observation.

* Ruff lint/formatting

* Update Cedar Detect / Solve and Solidify Align (#256)

* Starting cedar update, align code changed

* Cedar detect update

* Cedar detect update - RPI version

* Switching to selective migrations

* Add submodule migration

* switch check for files

* working on conditionals

* Recompile on rpi4

* Use cedar-solve 0.5.1

* Remove debug prints

* Working on mypy failure

* Update to proper tetra3

* Update for mypy

* Maybe working now?

* Remove symlink

* Update tetra3 version

* Simplify tetra3 update

* Simplify tetra3 update

* Ignore imu on alignment screen, adjust menu, clean up debug

* Fix reticle position after alignment

* Add Architecture documentation (#259)

* Add entry for entering RA/DEC in Objects menu.

* Add Architecture description to documentation.

* Added a high level description of architecture

* Added more information

Running monkey fuzz scripts,
Testing

* Added more reqs, image is passing and short description of main processes

* Revert "Add entry for entering RA/DEC in Objects menu." this is

This reverts commit be5a7c8.

* Fix formatting of links and provide a nice structure for architecture docs

* Some finetuning.

* Add more documentation on process collaboration

* Take PR #256 into account.

---------

Co-authored-by: Jens Scheidtmann <[email protected]>

* Use raw linear images in imaging pipeline (#260)

* Raw output for camera in shared state

* feeding linear image through pipeline

* imx296 working with auto-stretch, removed vestigal double return

* Clean up capture_file

* Works with v2 camera

* Add option for az arrow reversal

---------

Co-authored-by: mrosseel <[email protected]>
Co-authored-by: Jens Scheidtmann <[email protected]>
Co-authored-by: Wim De Meester <[email protected]>
Co-authored-by: Jens Scheidtmann <[email protected]>
  • Loading branch information
5 people authored Jan 2, 2025
1 parent 836d0d7 commit a5e218f
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
17 changes: 17 additions & 0 deletions python/PiFinder/ui/menu_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,23 @@
},
],
},
{
"name": "Az Arrows",
"class": UITextMenu,
"select": "single",
"config_option": "pushto_az_arrows",
"label": "pushto_az_arrows",
"items": [
{
"name": "Default",
"value": "Default",
},
{
"name": "Reverse",
"value": "Reverse",
},
],
},
],
},
{
Expand Down
10 changes: 10 additions & 0 deletions python/PiFinder/ui/object_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,16 @@ def _render_pointing_instructions(self):
else:
az_arrow = self._RIGHT_ARROW

# Check az arrow config
if (
self.config_object.get_option("pushto_az_arrows", "Default")
== "Reverse"
):
if az_arrow is self._LEFT_ARROW:
az_arrow = self._RIGHT_ARROW
else:
az_arrow = self._LEFT_ARROW

# Change decimal points when within 1 degree
if point_az < 1:
self.draw.text(
Expand Down
10 changes: 10 additions & 0 deletions python/PiFinder/ui/object_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,16 @@ def format_az_alt(self, point_az, point_alt):
point_az *= -1
az_arrow_symbol = self._LEFT_ARROW

# Check az arrow config
if (
self.config_object.get_option("pushto_az_arrows", "Default")
== "Reverse"
):
if az_arrow_symbol == self._LEFT_ARROW:
az_arrow_symbol = self._RIGHT_ARROW
else:
az_arrow_symbol = self._LEFT_ARROW

if point_az > 100:
point_az = 99

Expand Down

0 comments on commit a5e218f

Please sign in to comment.