1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
|
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<SkywatcherFeature>(ahp_gt_get_features(0) & ~static_cast<int>(isAZEQ)));
ahp_gt_set_features(1, static_cast<SkywatcherFeature>(ahp_gt_get_features(1) & ~static_cast<int>(isAZEQ)));
- ahp_gt_set_mount_flags(static_cast<GT1Flags>(0));
+ ahp_gt_set_mount_flags(static_cast<GTFlags>(0));
break;
case GT_AZEQ:
ahp_gt_set_features(0, static_cast<SkywatcherFeature>(ahp_gt_get_features(0) | static_cast<int>(isAZEQ)));
ahp_gt_set_features(1, static_cast<SkywatcherFeature>(ahp_gt_get_features(1) | static_cast<int>(isAZEQ)));
- ahp_gt_set_mount_flags(static_cast<GT1Flags>(0));
+ ahp_gt_set_mount_flags(static_cast<GTFlags>(0));
break;
case GT_FORK:
ahp_gt_set_features(0, static_cast<SkywatcherFeature>(ahp_gt_get_features(0) & ~static_cast<int>(isAZEQ)));
@@ -312,19 +313,19 @@
}
if(!strcmp(GTRASteppingModeSP.getName(), name))
{
- ahp_gt_set_stepping_mode(0, static_cast<GT1SteppingMode>(GTRASteppingModeSP.findOnSwitchIndex()));
+ ahp_gt_set_stepping_mode(0, static_cast<GTSteppingMode>(GTRASteppingModeSP.findOnSwitchIndex()));
ahp_gt_write_values(0, &progress, &write_finished);
updateProperties();
}
if(!strcmp(GTRAWindingSP.getName(), name))
{
- ahp_gt_set_stepping_conf(0, static_cast<GT1SteppingConfiguration>(GTRAWindingSP.findOnSwitchIndex()));
+ ahp_gt_set_stepping_conf(0, static_cast<GTSteppingConfiguration>(GTRAWindingSP.findOnSwitchIndex()));
ahp_gt_write_values(0, &progress, &write_finished);
updateProperties();
}
if(!strcmp(GTRAGPIOConfigSP.getName(), name))
{
- ahp_gt_set_feature(0, static_cast<GT1Feature>(GTRAGPIOConfigSP.findOnSwitchIndex()));
+ ahp_gt_set_feature(0, static_cast<GTFeature>(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<GT1SteppingMode>(GTDESteppingModeSP.findOnSwitchIndex()));
+ ahp_gt_set_stepping_mode(1, static_cast<GTSteppingMode>(GTDESteppingModeSP.findOnSwitchIndex()));
ahp_gt_write_values(1, &progress, &write_finished);
updateProperties();
}
if(!strcmp(GTDEWindingSP.getName(), name))
{
- ahp_gt_set_stepping_conf(1, static_cast<GT1SteppingConfiguration>(GTDEWindingSP.findOnSwitchIndex()));
+ ahp_gt_set_stepping_conf(1, static_cast<GTSteppingConfiguration>(GTDEWindingSP.findOnSwitchIndex()));
ahp_gt_write_values(1, &progress, &write_finished);
updateProperties();
}
if(!strcmp(GTDEGPIOConfigSP.getName(), name))
{
- ahp_gt_set_feature(1, static_cast<GT1Feature>(GTDEGPIOConfigSP.findOnSwitchIndex()));
+ ahp_gt_set_feature(1, static_cast<GTFeature>(GTDEGPIOConfigSP.findOnSwitchIndex()));
ahp_gt_write_values(1, &progress, &write_finished);
updateProperties();
}
|