Translate ptich/roll angle to PWM output for servos?

Hi

Is there a way to have the pitch and roll angle translate/map to PWM outputs for servo angle? I would like to have two servos turn directly proportional to my Quads pitch and roll angle. Is this configuration possible? Like a gimbal but working with servos knowing that servos are slower than brush-less motors.

I’m currently making the code.

My email is hlfan1234567@gmail.com