Gripper & Experimenter’s Module
case sfRIGHT:
which = sfRIGHTLEDBIT;
break;
default:
which = 0;
}
switch(state)
{
case sfOFF:
sfRobotCom2Bytes(sfCOMDIGOUT, which, 0);
break;
case sfON:
sfRobotCom2Bytes(sfCOMDIGOUT, which, which);
break;
}
}
23
case sfRIGHT:
which = sfRIGHTLEDBIT;
break;
default:
which = 0;
}
switch(state)
{
case sfOFF:
sfRobotCom2Bytes(sfCOMDIGOUT, which, 0);
break;
case sfON:
sfRobotCom2Bytes(sfCOMDIGOUT, which, which);
break;
}
}
23