I have gotten back to this and have good comms back and forth, but I have having some issues with the units. Can you help me understand what the protocol is expecting, unit wise, for the following commands:

Inquire Timer Interrupt Freq: I think this is supposed to be how many encoder steps occur during each pulse of the motor
Inquire Counts Per Revolution: I think this is how many encoder pulses are expected for the mount to cycle through 360 degrees

The motor driver keeps trying to set the period to 0 when I try to slew. Here is the log output:
[2020-06-15T04:46:26.355 EDT INFO ][ org.kde.kstars.indi] - EQMod Mount : "[INFO] Starting North slew. "
[2020-06-15T04:46:26.360 EDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[DEBUG] SlewDE() : rate = 4 "
[2020-06-15T04:46:26.361 EDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[DEBUG] Slewing DE at 4.00 4.00 0 0.149590 "
[2020-06-15T04:46:26.361 EDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[MOUNT] SetMotion() : Axis = 2 -- dir=forward mode=slew speedmode=lowspeed "
[2020-06-15T04:46:26.361 EDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[SCOPE] CheckMotorStatus() : Axis = 2 "
[2020-06-15T04:46:26.361 EDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[COMM] dispatch_command: \":f2\", 0 bytes written "
[2020-06-15T04:46:26.366 EDT DEBG ][ org.kde.kstars.indi] - Telescope Simulator : "[SCOPE] Current RA: 13:38:50 Current DEC: 90:00:00 "
[2020-06-15T04:46:26.414 EDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[COMM] read_eqmod: \"=103\", 5 bytes read "
[2020-06-15T04:46:26.419 EDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[MOUNT] SetSpeed() : Axis = 2 -- period=0 "
[2020-06-15T04:46:26.419 EDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[COMM] dispatch_command: \":f2\", 0 bytes written "
[2020-06-15T04:46:26.473 EDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[COMM] read_eqmod: \"=103\", 5 bytes read "
[2020-06-15T04:46:26.479 EDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[COMM] dispatch_command: \":I2000000\", 0 bytes written "
[2020-06-15T04:46:26.491 EDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[COMM] read_eqmod: \"=\", 2 bytes read "
[2020-06-15T04:46:26.496 EDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[MOUNT] StartMotor() : Axis = 2 "

All I can think is that I am not understanding the line:

period = static_cast<uint32_t>(((SKYWATCHER_STELLAR_DAY * RAStepsWorm) / static_cast<double>(RASteps360)) / absrate);

As the variable period is declared as a u32, I assume that the only way I would get a zero is if, RAStepsWorm is zero (but I think I have checked that and it is not, it is set to 25 I think), or period is less than 1 where the computer would truncate the value to 0. My RASteps360 (If I am interp correctly) is set tp 3_600_000. That is because there is 10000 pulses per motor revolution and then a 360:1 gearing ratio (120 on a worm drive and then 3:1 on a belt drive). I am assuming that rate in this case is the desired speed in the units of Siderial rate right?

Any help would be super great.

I am sure I will have similar questions for the position, but I think they are just encoder positions. So, maybe I have that already.

Read More...