From bbf7314592d0463dd995a94fab28d7cd1e6f07ac Mon Sep 17 00:00:00 2001 From: Edward Emelianov Date: Tue, 2 Dec 2025 12:33:16 +0300 Subject: [PATCH] . --- LibSidServo/PID.c | 4 ++-- LibSidServo/examples/conf.c | 4 ++-- LibSidServo/sidservo.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/LibSidServo/PID.c b/LibSidServo/PID.c index ae7076d..e043a82 100644 --- a/LibSidServo/PID.c +++ b/LibSidServo/PID.c @@ -103,7 +103,7 @@ static double getspeed(const coordval_t *tagpos, PIDpair_t *pidpair, axisdata_t } break; case AXIS_POINTING: - if(fe < Conf.MaxFinePoingintErr){ + if(fe < Conf.MaxFinePointingErr){ axis->state = AXIS_GUIDING; DBG("--> Guiding"); pid = pidpair->PIDV; @@ -115,7 +115,7 @@ static double getspeed(const coordval_t *tagpos, PIDpair_t *pidpair, axisdata_t break; case AXIS_GUIDING: pid = pidpair->PIDV; - if(fe > Conf.MaxFinePoingintErr){ + if(fe > Conf.MaxFinePointingErr){ DBG("--> Pointing"); axis->state = AXIS_POINTING; pid = pidpair->PIDC; diff --git a/LibSidServo/examples/conf.c b/LibSidServo/examples/conf.c index fe6ac2c..9db5981 100644 --- a/LibSidServo/examples/conf.c +++ b/LibSidServo/examples/conf.c @@ -48,7 +48,7 @@ static conf_t Config = { .YPIDV.I = 0.0, .YPIDV.D = 0.05, .MaxPointingErr = 0.13962634, - .MaxFinePoingintErr = 0.026179939, + .MaxFinePointingErr = 0.026179939, .MaxGuidingErr = 4.8481368e-7, }; @@ -81,7 +81,7 @@ static sl_option_t opts[] = { {"YPIDVI", NEED_ARG, NULL, 0, arg_double, APTR(&Config.YPIDV.I), "I of Y PID (velocity driven)"}, {"YPIDVD", NEED_ARG, NULL, 0, arg_double, APTR(&Config.YPIDV.D), "D of Y PID (velocity driven)"}, {"MaxPointingErr", NEED_ARG, NULL, 0, arg_double, APTR(&Config.MaxPointingErr), "if angle < this, change state from \"slewing\" to \"pointing\" (coarse pointing): 8 degrees"}, - {"MaxFinePoingintErr",NEED_ARG, NULL, 0, arg_double, APTR(&Config.MaxFinePoingintErr), "if angle < this, chane state from \"pointing\" to \"guiding\" (fine poinging): 1.5 deg"}, + {"MaxFinePointingErr",NEED_ARG, NULL, 0, arg_double, APTR(&Config.MaxFinePointingErr), "if angle < this, chane state from \"pointing\" to \"guiding\" (fine poinging): 1.5 deg"}, {"MaxGuidingErr", NEED_ARG, NULL, 0, arg_double, APTR(&Config.MaxGuidingErr), "if error less than this value we suppose that target is captured and guiding is good (true guiding): 0.1''"}, // {"",NEED_ARG, NULL, 0, arg_double, APTR(&Config.), ""}, end_option diff --git a/LibSidServo/sidservo.h b/LibSidServo/sidservo.h index ae46249..9c2f1fb 100644 --- a/LibSidServo/sidservo.h +++ b/LibSidServo/sidservo.h @@ -75,7 +75,7 @@ typedef struct{ PIDpar_t YPIDC; PIDpar_t YPIDV; double MaxPointingErr; // if angle < this, change state from "slewing" to "pointing" (coarse pointing): 8 degrees - double MaxFinePoingintErr; // if angle < this, chane state from "pointing" to "guiding" (fine poinging): 1.5 deg + double MaxFinePointingErr; // if angle < this, chane state from "pointing" to "guiding" (fine poinging): 1.5 deg double MaxGuidingErr; // if error less than this value we suppose that target is captured and guiding is good (true guiding): 0.1'' } conf_t;