FACT++  1.0
void ConnectionDrive::StartAbsolutePositioning ( const Encoder enc,
bool  zd,
bool  az 
)
inline

Definition at line 1373 of file drivectrl.cc.

References Local::az, and Local::zd.

1374  {
1375  if (az) SendSdo(kNodeAz, kSetPosition, lrint(enc.az*fPosRes[0]));
1376  if (zd) SendSdo(kNodeZd, kSetPosition, lrint(enc.zd*fPosRes[1]));
1377 
1378  // Make sure that the status is set correctly already before the first PDO
1379  if (az) fStatusAxis[0] |= 0x02;
1380  if (zd) fStatusAxis[1] |= 0x02;
1381 
1382  // FIXME: UpdateDim?
1383  }
uint8_t fStatusAxis[2]
Definition: drivectrl.cc:767
double zd
Definition: drivectrl.cc:51
uint32_t fPosRes[2]
Definition: drivectrl.cc:583
double az
Definition: drivectrl.cc:52
void SendSdo(uint8_t node, uint16_t idx, uint8_t subidx, uint32_t val)
Definition: drivectrl.cc:1287