Skip to content

Commit

Permalink
Merge pull request #64 from epics-motor/issue61
Browse files Browse the repository at this point in the history
Improved axis resolution detection

Fixes #61
  • Loading branch information
kmpeters authored Dec 2, 2024
2 parents f99eda1 + 43507bb commit 366b62f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion acsMotionApp/src/SPiiPlusDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ SPiiPlusController::SPiiPlusController(const char* ACSPortName, const char* asyn

// axis resolution (used to convert motor record steps into controller EGU)
// TODO: how should nanomotion piezo ceramic motors (bit 7 of mflags) be handled?
if ((pAxes_[index]->brushl_ == 0) && (pAxes_[index]->linear_ == 0))
// TODO: does the following logic fail to identify non-PD steppers that aren't microstepping as stepper motors?
if ((pAxes_[index]->micro_ > 0) || ((pAxes_[index]->stepper_ > 0) && (pAxes_[index]->stepenc_ == 0)))
{
// Use the stepper factor as the resolution for stepper motors
pAxes_[index]->resolution_ = stepperFactor_[index];
Expand Down

0 comments on commit 366b62f

Please sign in to comment.