From 67eee854c0a640bd890012a0f4ddc6b332eaf23e Mon Sep 17 00:00:00 2001 From: Daniel Sissom Date: Thu, 23 May 2024 14:19:43 -0500 Subject: [PATCH] Changed engineering units to encoder counts for get position. --- dsmApp/src/MD90Driver.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dsmApp/src/MD90Driver.cpp b/dsmApp/src/MD90Driver.cpp index 24b363a..064ccb9 100644 --- a/dsmApp/src/MD90Driver.cpp +++ b/dsmApp/src/MD90Driver.cpp @@ -272,10 +272,10 @@ asynStatus MD90Axis::poll(bool *moving) // TODO: Will need to add some more error handling for the motor return codes. // Read the current motor position - sprintf(pC_->outString_, "GEE"); + sprintf(pC_->outString_, "GEC"); comStatus = pC_->writeReadController(); if (comStatus) goto skip; - // The response string is of the form "0: Current position in nanometers: 1000" + // The response string is of the form "0: Current position in encoder counts: 1000" sscanf (pC_->inString_, "%d: %[^:]: %lf", &replyStatus, replyString, &replyValue); position = replyValue; setDoubleParam(pC_->motorPosition_, position);