| ¶Ô±ÈÐÂÎļþ |
| | |
| | | #include "stdafx.h" |
| | | #include "CFliper.h" |
| | | |
| | | namespace SERVO { |
| | | CFliper::CFliper() : CEquipment() |
| | | { |
| | | |
| | | } |
| | | |
| | | CFliper::~CFliper() |
| | | { |
| | | |
| | | } |
| | | |
| | | const char* CFliper::getClassName() |
| | | { |
| | | static char* pszName = "CFliper"; |
| | | return pszName; |
| | | } |
| | | |
| | | void CFliper::init() |
| | | { |
| | | CEquipment::init(); |
| | | } |
| | | |
| | | void CFliper::term() |
| | | { |
| | | CEquipment::term(); |
| | | } |
| | | |
| | | // å¿
é¡»è¦å®ç°çè彿°ï¼å¨æ¤åå§åPinå表 |
| | | void CFliper::initPins() |
| | | { |
| | | // å å
¥Pinåå§å代ç |
| | | LOGI("<CFliper>initPins"); |
| | | addPin(SERVO::PinType::INPUT, _T("In1")); |
| | | addPin(SERVO::PinType::INPUT, _T("In2")); |
| | | addPin(SERVO::PinType::OUTPUT, _T("Out")); |
| | | } |
| | | |
| | | void CFliper::onTimer(UINT nTimerid) |
| | | { |
| | | CEquipment::onTimer(nTimerid); |
| | | } |
| | | |
| | | void CFliper::serialize(CArchive& ar) |
| | | { |
| | | CEquipment::serialize(ar); |
| | | } |
| | | |
| | | void CFliper::getAttributeVector(CAttributeVector& attrubutes) |
| | | { |
| | | __super::getAttributeVector(attrubutes); |
| | | } |
| | | |
| | | int CFliper::recvIntent(CPin* pPin, CIntent* pIntent) |
| | | { |
| | | return __super::recvIntent(pPin, pIntent); |
| | | } |
| | | } |