%This is not programed well and needs to be fixed
function pressure = balloonpressure(payload,Pballoon,Tballoon,pair)
%assumes SI units for all inputs
pHe = (Pballoon.*4.002602)./(Tballoon*8314.4598);
Vneeded = (payload/9.81)/(pair-pHe);
vtank = 43.61/1000; %liters/1000 = cubic meters
pressure = (Vneeded/vtank*(Pballoon));
end
