Controlling Continuous Servo Motor to move 60 degree

I’m using a pixhawk 6C mini and a MG996R Continuous Servo connected to FMU PWM Out pin 5.
I use ELRS receiver to TX16S Controller, following the custom firmware configuration for QGround Control resources online.
How can I make the Continuous Servo motor move in 60 Degree angle every time I flip a switch?

Are you using PX4 or ArduPilot?