Skip to content

Eq-mount support under IMU dead-reckoning tracking#338

Merged
brickbots merged 301 commits intobrickbots:mainfrom
TakKanekoGit:eq_mount_imu_support
Mar 1, 2026
Merged

Eq-mount support under IMU dead-reckoning tracking#338
brickbots merged 301 commits intobrickbots:mainfrom
TakKanekoGit:eq_mount_imu_support

Conversation

@TakKanekoGit
Copy link
Contributor

@TakKanekoGit TakKanekoGit commented Aug 20, 2025

Work-in-progress...

Features:

  • IMU dead-reckoning tracking for EQ mounts.
  • PiFinder no longer needs to be placed upright (it can be mounted as any angle as long as the camera points the same way as the scope).
  • For altaz mounts, the charts are displayed in horizontal coordinates (Zenith-up) so that alt/az motion will be left/right and up/down. For EQ mounts, the charts are displayed in equatorial coordinates (NCP up) so that az/dec motion will be left/right and up/down.

Changes:

  • imu_pi.py: IMU data coordinates are no longer altered here depending on the PiFinder type. IMU outputs will be they are from the IMU. This is now done in imu_dead_reckoning.py.
  • integrator.py: Substantial changes. Tracking is done in the equatorial coordinates rather than altaz coordinates. Use quaternion for the IMU dead-reckoning. Sets solver["Roll"] depending on the mount type for chart display.
  • pointing_model\: The new classes and functions are grouped up here. It's possible that we could extend this in the future?
  • requirements_dev.txt: Requires numpy.quaternion.

This PR touches the core of the IMU functionality so it still needs to be tested thoroughly on all PiFinder types and also on altaz and EQ mounts.

Issues:

  • Fix issues after merging with the auto exposure feature
  • Chart rotates 180 degrees to the East of Mirfak (from sky testing): Pointings in RA, Dec were OK but in Chart mode, the chart rotated 180 degrees as I crossed to the East of around Mirfak in Perseus with the result that slewing to the
    East showed up as moving to the right.
  • Southern hemisphere & equator EQ mode: Should it be South Pole up (roll = 180 deg)?
  • Southern hemisphere & equator Alt/az mode: if lat < 0: Display Roll + 180 deg (south up). Use North at equator

Sky test IMU orientations

  • Flat v2
  • Left
  • Right
  • Straight
  • Flat v3
  • as_dream

TakKanekoGit added 30 commits August 8, 2025 22:52
…-> Now plate solves but chart doesn't move when PiFinder moved
…. Smoother. BUT IMU tracking is L/R and Up/Down reversed!?
TakKanekoGit and others added 24 commits February 13, 2026 23:10
Add support for Stellarium+ Mobile

The critical command here is the ack command. Most of the additional commands aren't strictly necessary but speed up the connection process (otherwise Stellarium times out and moves on).
* Use J2000 as epoch when Stellarium is connected

Stellarium seems to use J2000 as its epoch, while SkySafari uses JNOW by default.

Technically we don't need to do position_of_radec etc. when J2000 is the input, but I thought this was a simpler change.

Reference to Stellarium using J2000 - https://sourceforge.net/p/stellarium/discussion/278769/thread/fc15d042/ 
Update to Cedar was done here - smroid/cedar-server@f2f6b69

* Skip epoch conversion for Stellarium
…Alt and vice versa. Reverting change from commit (d364fef) seems to fix this.
@TakKanekoGit
Copy link
Contributor Author

There are some untested issues but I would like to get the review re-started again. Thanks!

@brickbots brickbots merged commit f019549 into brickbots:main Mar 1, 2026
1 check passed
@brickbots
Copy link
Owner

@TakKanekoGit This is a HUGE contribution and I know it took a big effort. Thank you so much, this will serve as a great foundation for future PiFinder work 🥇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants