本文整理汇总了C++中Movement::stop方法的典型用法代码示例。如果您正苦于以下问题:C++ Movement::stop方法的具体用法?C++ Movement::stop怎么用?C++ Movement::stop使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Movement
的用法示例。
在下文中一共展示了Movement::stop方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: scanUpdate
void scanUpdate() {
Serial.println("skipping scan update");
fsm.transitionTo(moveToState);
//Perform the scanning actions
switch(internalState){
//Move until hitting a colour
case 0:
Serial.println("Reached case 1");
if (curPos == POS_SEA) {
//focused on bay, read colour
if(centerBay(RIGHT,curPos,RIGHT)){
move.stop();
#if DEBUG_SCANNING == true
{
seaZone[rBlockPos].colour = debugSeaZone[rBlockPos].colour;
}
#else
seaZone[rBlockPos].colour = rightCam.getBlockColour();
}
#endif
seaZone[rBlockPos].size = MED;
seaZone[rBlockPos].present = false;
rBlockPos++;
if(rBlockPos == 6)
//leave scanning
internalState = 2;
else
//go to the next betweenZone position
internalState = 1;
}
}
//scanning rail (state transition 6)
else if (curPos == POS_RAIL) {