A spray gun system comprising: a spray gun configured to distribute a mixture of air and fluid onto a working surface; a pressure sensor fluidly connected to the spray gun, wherein the pressure sensor is configured to measure fluid pressure within the spray gun system; and a controller electrically connected to the pressure sensor, wherein the controller is configured to: receive a measured pressure from the pressure sensor; calculate pressure error based on the measured pressure and a pressure set-point; compare the pressure error to an error threshold; increment an increment counter if the pressure error exceeds the error threshold; perform, in response to determining that the increment counter exceeds a count threshold, a flow control loop that: receives a target flow rate as input; receives a measured flow rate as feedback; determines a flow rate error as a difference between the target flow rate and the measured flow rate; and adjusts the pressure set-point using the flow rate error to achieve the target flow rate; and perform a pressure control loop that adjusts the fluid pressure within the spray gun system using the pressure error to achieve the pressure set-point. a spray gun configured to distribute a mixture of air and fluid onto a working surface; a pressure sensor fluidly connected to the spray gun, wherein the pressure sensor is configured to measure fluid pressure within the spray gun system; and a controller electrically connected to the pressure sensor, wherein the controller is configured to: receive a measured pressure from the pressure sensor; calculate pressure error based on the measured pressure and a pressure set-point; compare the pressure error to an error threshold; increment an increment counter if the pressure error exceeds the error threshold; perform, in response to determining that the increment counter exceeds a count threshold, a flow control loop that: receives a target flow rate as input; receives a measured flow rate as feedback; determines a flow rate error as a difference between the target flow rate and the measured flow rate; and adjusts the pressure set-point using the flow rate error to achieve the target flow rate; and perform a pressure control loop that adjusts the fluid pressure within the spray gun system using the pressure error to achieve the pressure set-point. receive a measured pressure from the pressure sensor; calculate pressure error based on the measured pressure and a pressure set-point; compare the pressure error to an error threshold; increment an increment counter if the pressure error exceeds the error threshold; perform, in response to determining that the increment counter exceeds a count threshold, a flow control loop that: receives a target flow rate as input; receives a measured flow rate as feedback; determines a flow rate error as a difference between the target flow rate and the measured flow rate; and adjusts the pressure set-point using the flow rate error to achieve the target flow rate; and receives a target flow rate as input; receives a measured flow rate as feedback; determines a flow rate error as a difference between the target flow rate and the measured flow rate; and adjusts the pressure set-point using the flow rate error to achieve the target flow rate; and perform a pressure control loop that adjusts the fluid pressure within the spray gun system using the pressure error to achieve the pressure set-point. <EOS>