Is there any case where you wouldn't want to have it automatically add your control input to the rate mode gyro output, and directly passthrough your input when the gyro is off?
essentially, why can't we remove the need for the third line here, possibly by making gyro yaw out = gyro yaw command when the gyro mode is "off", and gyro yaw out = gyro yaw output + gyro yaw command when the gyro mode is "rate"

Is there any case where you wouldn't want to have it automatically add your control input to the rate mode gyro output, and directly passthrough your input when the gyro is off?
essentially, why can't we remove the need for the third line here, possibly by making gyro yaw out = gyro yaw command when the gyro mode is "off", and gyro yaw out = gyro yaw output + gyro yaw command when the gyro mode is "rate"