crewCO2i = -0.5f;
crewCO2i = -0.2f;
	private void doAccumulatorsInjectors() { 		// a crude feedback controller for the accumulators and injectors 		GenericSensor levelSensor, rateSensor;  		GenericActuator currentActuator; 				float delta, signal; 		float crewO2p, crewCO2p, plantO2p, plantCO2p; 		float crewO2i, crewCO2i, plantO2i, plantCO2i; 		float crewO2, crewCO2, plantO2, plantCO2; 		SimEnvironment myCrewEnvironment = (SimEnvironment)myBioHolder.theSimEnvironments.get(0);		SimEnvironment myPlantEnvironment = (SimEnvironment)myBioHolder.theSimEnvironments.get(1);		Injector myInjector = (Injector)myBioHolder.theInjectors.get(0);		Accumulator myAccumulator = (Accumulator)myBioHolder.theAccumulators.get(0);				//crew O2 feedback control		crewO2p = 200f;		crewO2i = 0.5f;		levelSensor = (GenericSensor)(myBioHolder.getSensorAttachedTo(myBioHolder.theO2AirConcentrationSensors, myCrewEnvironment));		crewO2 = levelSensor.getValue();		delta = (float)(CrewO2Level - crewO2);		crewO2integral += delta;		signal = delta*crewO2p + crewO2i*crewO2integral;//		System.out.println("O2 flow from tank to Crew environment: "+signal);		currentActuator = (GenericActuator)(myBioHolder.getActuatorAttachedTo(myBioHolder.theO2AirEnvironmentOutFlowRateActuators, myInjector));		currentActuator.setValue((float)(signal));		currentActuator = (GenericActuator)(myBioHolder.getActuatorAttachedTo(myBioHolder.theO2AirStoreInFlowRateActuators, myInjector));		currentActuator.setValue((float)(signal));		//crew CO2 feedback control		crewCO2p = -200f;		crewCO2i = -0.5f;		levelSensor = (GenericSensor)(myBioHolder.getSensorAttachedTo(myBioHolder.theCO2AirConcentrationSensors, myCrewEnvironment));		crewCO2 = levelSensor.getValue();		delta = (float)(CrewCO2Level - crewCO2);		crewCO2integral += delta;		signal = delta*crewCO2p + crewCO2i*crewCO2integral;//		System.out.println("CO2 flow from Crew environment to tank: "+signal);		currentActuator = (GenericActuator)(myBioHolder.getActuatorAttachedTo(myBioHolder.theCO2AirEnvironmentInFlowRateActuators, myAccumulator));		currentActuator.setValue((float)(signal));		currentActuator = (GenericActuator)(myBioHolder.getActuatorAttachedTo(myBioHolder.theCO2AirStoreOutFlowRateActuators, myAccumulator));		currentActuator.setValue((float)(signal));		//plant O2 feedback control		plantO2p = -200f;		plantO2i = -1f;		levelSensor = (GenericSensor)(myBioHolder.getSensorAttachedTo(myBioHolder.theO2AirConcentrationSensors, myPlantEnvironment));		plantO2 = levelSensor.getValue();		delta = (float)(PlantO2Level - plantO2);		plantO2integral += delta;		signal = delta*plantO2p + plantO2i*plantO2integral;//		System.out.println("O2 flow from Plant environment to tank: "+signal);		currentActuator = (GenericActuator)(myBioHolder.getActuatorAttachedTo(myBioHolder.theO2AirEnvironmentInFlowRateActuators, myAccumulator));		currentActuator.setValue((float)(signal));		currentActuator = (GenericActuator)(myBioHolder.getActuatorAttachedTo(myBioHolder.theO2AirStoreOutFlowRateActuators, myAccumulator));		currentActuator.setValue((float)(signal));		//plant CO2 feedback control		plantCO2p = 200f;		plantCO2i = 1f;		levelSensor = (GenericSensor)(myBioHolder.getSensorAttachedTo(myBioHolder.theCO2AirConcentrationSensors, myPlantEnvironment));		plantCO2 = levelSensor.getValue();		delta = (float)(PlantCO2Level - plantCO2);		plantCO2integral += delta;		signal = delta*plantCO2p + plantCO2i*plantCO2integral;//		System.out.println("CO2 flow from tank to Plant environment: "+signal);		currentActuator = (GenericActuator)(myBioHolder.getActuatorAttachedTo(myBioHolder.theCO2AirEnvironmentOutFlowRateActuators, myInjector));		currentActuator.setValue((float)(signal));		currentActuator = (GenericActuator)(myBioHolder.getActuatorAttachedTo(myBioHolder.theCO2AirStoreInFlowRateActuators, myInjector));		currentActuator.setValue((float)(signal));								currentActuator = (GenericActuator)myBioHolder.theWaterAirEnvironmentInFlowRateActuators.get(0); 		currentActuator.setValue(2f);		currentActuator = (GenericActuator)myBioHolder.theWaterAirEnvironmentInFlowRateActuators.get(1); 		currentActuator.setValue(3.7f);		currentActuator = (GenericActuator)(myBioHolder.getActuatorAttachedTo(myBioHolder.theWaterAirStoreOutFlowRateActuators, myAccumulator));		currentActuator.setValue(6f);		} 