Description: new version of libahp-gt uses axis on more functions Index: indi-eqmod/ahpgtbase.cpp =================================================================== --- indi-eqmod.orig/ahpgtbase.cpp 2025-04-05 00:42:28.832301349 +0200 +++ indi-eqmod/ahpgtbase.cpp 2025-04-05 00:43:02.628299613 +0200 @@ -215,7 +215,7 @@ else GTMountConfigSP[GT_GEM].setState(ISS_ON); GTMountConfigSP.apply(); - GTConfigurationNP[GT_PWM_FREQ].setValue(ahp_gt_get_pwm_frequency() * 700 + 1500); + GTConfigurationNP[GT_PWM_FREQ].setValue(ahp_gt_get_pwm_frequency(0) * 700 + 1500); GTConfigurationNP.apply(); } else @@ -264,7 +264,8 @@ } if(!strcmp(GTConfigurationNP.getName(), name)) { - ahp_gt_set_pwm_frequency((GTConfigurationNP[GT_PWM_FREQ].getValue() - 1500) / 700); + ahp_gt_set_pwm_frequency(0 ,(GTConfigurationNP[GT_PWM_FREQ].getValue() - 1500) / 700); + ahp_gt_set_pwm_frequency(1 ,(GTConfigurationNP[GT_PWM_FREQ].getValue() - 1500) / 700); ahp_gt_write_values(0, &progress, &write_finished); ahp_gt_write_values(1, &progress, &write_finished); updateProperties(); @@ -285,12 +286,12 @@ case GT_GEM: ahp_gt_set_features(0, static_cast(ahp_gt_get_features(0) & ~static_cast(isAZEQ))); ahp_gt_set_features(1, static_cast(ahp_gt_get_features(1) & ~static_cast(isAZEQ))); - ahp_gt_set_mount_flags(static_cast(0)); + ahp_gt_set_mount_flags(static_cast(0)); break; case GT_AZEQ: ahp_gt_set_features(0, static_cast(ahp_gt_get_features(0) | static_cast(isAZEQ))); ahp_gt_set_features(1, static_cast(ahp_gt_get_features(1) | static_cast(isAZEQ))); - ahp_gt_set_mount_flags(static_cast(0)); + ahp_gt_set_mount_flags(static_cast(0)); break; case GT_FORK: ahp_gt_set_features(0, static_cast(ahp_gt_get_features(0) & ~static_cast(isAZEQ))); @@ -312,19 +313,19 @@ } if(!strcmp(GTRASteppingModeSP.getName(), name)) { - ahp_gt_set_stepping_mode(0, static_cast(GTRASteppingModeSP.findOnSwitchIndex())); + ahp_gt_set_stepping_mode(0, static_cast(GTRASteppingModeSP.findOnSwitchIndex())); ahp_gt_write_values(0, &progress, &write_finished); updateProperties(); } if(!strcmp(GTRAWindingSP.getName(), name)) { - ahp_gt_set_stepping_conf(0, static_cast(GTRAWindingSP.findOnSwitchIndex())); + ahp_gt_set_stepping_conf(0, static_cast(GTRAWindingSP.findOnSwitchIndex())); ahp_gt_write_values(0, &progress, &write_finished); updateProperties(); } if(!strcmp(GTRAGPIOConfigSP.getName(), name)) { - ahp_gt_set_feature(0, static_cast(GTRAGPIOConfigSP.findOnSwitchIndex())); + ahp_gt_set_feature(0, static_cast(GTRAGPIOConfigSP.findOnSwitchIndex())); ahp_gt_write_values(0, &progress, &write_finished); updateProperties(); } @@ -336,19 +337,19 @@ } if(!strcmp(GTDESteppingModeSP.getName(), name)) { - ahp_gt_set_stepping_mode(1, static_cast(GTDESteppingModeSP.findOnSwitchIndex())); + ahp_gt_set_stepping_mode(1, static_cast(GTDESteppingModeSP.findOnSwitchIndex())); ahp_gt_write_values(1, &progress, &write_finished); updateProperties(); } if(!strcmp(GTDEWindingSP.getName(), name)) { - ahp_gt_set_stepping_conf(1, static_cast(GTDEWindingSP.findOnSwitchIndex())); + ahp_gt_set_stepping_conf(1, static_cast(GTDEWindingSP.findOnSwitchIndex())); ahp_gt_write_values(1, &progress, &write_finished); updateProperties(); } if(!strcmp(GTDEGPIOConfigSP.getName(), name)) { - ahp_gt_set_feature(1, static_cast(GTDEGPIOConfigSP.findOnSwitchIndex())); + ahp_gt_set_feature(1, static_cast(GTDEGPIOConfigSP.findOnSwitchIndex())); ahp_gt_write_values(1, &progress, &write_finished); updateProperties(); }