Exemplo n.º 1
0
/*
 * Requests current z postion from the controller.  This function does the actual communication
 */
int RAMPSZStage::GetPositionSteps(long& steps)
{
  RAMPSHub* pHub = static_cast<RAMPSHub*>(GetParentHub());
  pHub->GetStatus();
  steps = (long)(posZ_um_ / stepSize_um_);

  // TODO(dek): implement status to get Z position
  return DEVICE_OK;
}