setlistener("/controls/engines/engine/magnetos", func(v) {
  interpolate("/controls/engines/engine/magnetos-pos", v.getValue(), 0.25);
});

setlistener("/controls/engines/engine[1]/magnetos", func(v) {
  interpolate("/controls/engines/engine[1]/magnetos-pos", v.getValue(), 0.25);
});
