Flaperons - angle range

Hello
I would like to adjust pixhawk configuration in order to control flaps & ailerons (as a common surface, flaperon) according to presented scenario:

  • toggle flaps switch to ‘OFF’: flaps&ailerons act within first angle range (shorter angle)
  • toggle flaps switch to ‘ON’: flaps&ailerons act within another angle range (wider angle)

Range is treated as an min/max scope.
Currently it operates within fixed and wide range. I want that it will be in dwo other range for flaps ‘ON’ and ‘OFF’. This question concerns manual, stabilize and auto mode. Without this, in autonomous flight, the plane sometimes goes into an endless spin and cannot get out.