centowen / salsa

MIT License
2 stars 1 forks source link

Tracking status and checkbox disabled automatically during tracking #27

Closed varenius closed 1 year ago

varenius commented 1 year ago
  1. Input coordinates (e.g. longitude 140)
  2. Press "track" checkbox
  3. Telescope slews to position. When it arrives, the tracking checkbox is automatically unchecked and telescope says "Idle"
  4. If we wait a few seconds, for target to move enough on the sky, then both checkbox and status (slewing) are updated automatically.
  5. When we arrive at the new position, they are disabled again.

So, the telescope IS tracking, in that it follows the source. But it doesn't keep the status and checkbox which it should while doing this :)

varenius commented 1 year ago

This problem is probably because self.commanded_horizontal = None; at https://github.com/centowen/salsa/blob/a92d235c441e7c174945fd6106d4554fcaef6d55/backend/src/salsa_telescope.rs#L314. It seems to me that this check, at https://github.com/centowen/salsa/blob/a92d235c441e7c174945fd6106d4554fcaef6d55/backend/src/salsa_telescope.rs#L313, can be removed. However, it's nice to use this function, perhap instead of the verbose comparison at https://github.com/centowen/salsa/blob/a92d235c441e7c174945fd6106d4554fcaef6d55/backend/src/salsa_telescope.rs#L191 ?