Ingredient chart
Ingredient chart
Ingredient chart
return false; } boolean checkBothRightSensor() { if(topRightSensorVoltage > voltageThreshold && bottomRightSensorVoltage > voltageThreshold ) { return true; } return false; } boolean checkBottomLeftSensor() { if(bottomLeftSensorVoltage > voltageThreshold){ return true; } return false; } boolean checkBottomMiddleSensor () { if(bottomMiddleSensorVoltage > voltageThreshold) { return true; } return false; } boolean checkBottomRightSensor () { if(bottomRightSensorVoltage > voltageThreshold) { return true; } return false; } void handleBothLeftSensor () { if(checkBothLeftSensor() && state != doNothingBothLeftSensor){ execute(topLeftServo, doNothingBothLeftSensor); }else if (!(checkBothLeftSensor()) && state == doNothingBothLeftSensor){ returnServoToOriginalPosition(topLeftServo); } } void handleBottomLeftSensor(){ if(checkBottomLeftSensor() && !checkBothLeftSensor() && state != doNothingBottomLeftSensor){ execute(bottomLeftServo, doNothingBottomLeftSensor);
L’OVERT : Responsive wall Nooshin Esmaeili I Responsive Architecture Studio I Winter 2011
Recommend
More recommend