LAPTOP-SNT8I5JK\Boounion
2025-06-12 4897210a25e7c98ddacb1fa4ecee3e8bdd1ae98e
SourceCode/Bond/Servo/CMeasurement.cpp
@@ -33,6 +33,22 @@
   {
      // 加入Pin初始化代码
      LOGI("<CMeasurement>initPins");
      addPin(SERVO::PinType::INPUT, _T("In"));
      addPin(SERVO::PinType::OUTPUT, _T("Out1"));
      addPin(SERVO::PinType::OUTPUT, _T("Out2"));
   }
   // 必须要实现的虚函数,在此初始化Slot信息
   void CMeasurement::initSlots()
   {
      m_slot[0].enable();
      m_slot[0].setPosition(m_nID);
      m_slot[0].setNo(1);
      m_slot[0].setName("Slot 1");
      m_slot[1].enable();
      m_slot[1].setPosition(m_nID);
      m_slot[1].setNo(2);
      m_slot[1].setName("Slot 2");
   }
   void CMeasurement::onTimer(UINT nTimerid)
@@ -55,13 +71,8 @@
      return __super::recvIntent(pPin, pIntent);
   }
   BOOL CMeasurement::glassWillArrive(CGlass* pGlass)
   int CMeasurement::getIndexerOperationModeBaseValue()
   {
      BOOL bRet = __super::glassWillArrive(pGlass);
      if (!bRet) {
         return FALSE;
      }
      return m_glassList.empty();
      return 35000;
   }
}