Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(belowTank2){
- if(tank_1.amount()>2*tank_2.amount()){
- valve.set_openRate(0.1);
- belowTank2=false;
- }
- }else{
- if(tank_1.amount()<2*tank_2.amount()){
- valve.set_openRate(0.3);
- belowTank2=true;
- }
- }
Add Comment
Please, Sign In to add comment