Change EKF MAG CAL param while in flight with RC switch

Hi All

I am wondering if it is possible to write and save a new value to EK3_MAG_CAL during flight?

Is it as simple as adding some well placed code to read the PWM and set a new value to the parameter ?

if PWM < 1500
param_x = 3
else param_x = 5

Thanks very much.

With the existing code the selections for in-flight tuning is available.

Yes is it available

https://ardupilot.org/copter/docs/ac_rollpitchtuning.html

You can set your channel 6 as a whatever you change (work with noob)

Happy flying :slightly_smiling_face: