OpenAstroTracker-Firmware icon indicating copy to clipboard operation
OpenAstroTracker-Firmware copied to clipboard

Incorrect DEC slew calculations

Open trishmapow opened this issue 3 years ago • 0 comments

Repost here from Discord.

Steps to reproduce (not 100% guaranteed):

  • (maybe?) DEC inverted in config
  • start at home position in southern hemisphere
  • slew north to 0 DEC (or higher?)
  • slew anywhere in RA

What happens: State before second slew: Tracking,--T---,0,28278,1470,154009,+000000, OATControl sends :XGC12.000*0.000# and receives 17267|-28278 DEC crashes into RA ring (also occurs over ASCOM)

What should happen: DEC should not move at all, -28278 should be positive.

I haven't dug into the code enough to understand stepper directions, how coordinates are encoded and so on. I ended up rewiring to avoid DEC invert, and the problem did not occur (limited testing). Will update when I have more time.

trishmapow avatar May 30 '21 11:05 trishmapow