Application/main.cpp
void clawAction(bool action){
	float grabMin = 70.0;
	float grabMax = 130.0;
	if (action){
		posGrab = grabMin;
	}else {
		posGrab = grabMax;
	}
}
// sets the rotation of the grab servo
// 1 = Closed;  0 = Open
sets the rotation of the grab servo
1 = Closed;  0 = Open
sets the rotation of the grab servo 1 = Closed ; 0 = Open
void clawAction(bool action){
	float grabMin = 70.0;
	float grabMax = 130.0;
	if (action){
		posGrab = grabMin;
	}else {
		posGrab = grabMax;
	}
}
void clawAction ( bool action ) { float grabMin = 70.0 ; float grabMax = 130.0 ; if ( action ) { posGrab = grabMin ; } else { posGrab = grabMax ; } }
sets the rotation of the grab servo
1 = Closed;  0 = Open
sets the rotation of the grab servo 1 = Closed ; 0 = Open