Setting disarmed PWM values for AUX outputs

Hi, is there a way to set the max/min/disarmed values for the AUX outputs?

For the MAIN outputs, it can be easily be made by setting in rc.interface

pwm disarmed -c 56 -p 1500

The code above will set the disarmed value of the MAIN outputs 5 and 6 to 1500, is there a way to do the same for the AUX outputs?

Thanks,

Nacho.

For all PWM Outputs this can be archived by the Parameter: PWM_AUX_MIN, PWM_AUX_MAX, PWM_AUX_DISARMED

@Andreas_Hoffmann I don’t think that’s correct
@nacho-carnicero Try appending “-d /dev/pwm_output1” to your pwm disarm command

I beg your pardon… What would then be the use of the above mentioned parameters?

As far as I can tell, they’re not used anywhere in the code. Also, they had no effect when I tried setting them.

They are used in rc.interface - actually I did only lookup the Parameter without checking all preconditions to enter this part.

	# Set min / max for aux out and rates
	if [ $PWM_AUX_OUT != none ]
	then
		#
		# Set PWM_AUX output frequency
		#
		if [ $PWM_AUX_RATE != none ]
		then
			pwm rate -c $PWM_AUX_OUT -r $PWM_AUX_RATE -d $OUTPUT_AUX_DEV
		fi

		if [ $PWM_AUX_MIN != none ]
		then
			pwm min -c $PWM_AUX_OUT -p $PWM_AUX_MIN -d $OUTPUT_AUX_DEV
		fi
		if [ $PWM_AUX_MAX != none ]
		then
			pwm max -c $PWM_AUX_OUT -p $PWM_AUX_MAX -d $OUTPUT_AUX_DEV
		fi
	fi

But yes, if I check the Config MC Config it may be the case, that they are overriden (see last 3 lines):

set environment variables (!= parameters)
set PWM_RATE 400
tell the mixer to use parameters for these instead
set PWM_DISARMED p:PWM_DISARMED
set PWM_MIN p:PWM_MIN
set PWM_MAX p:PWM_MAX

This is the gimbal pass mixer

set MIXER_AUX pass
set PWM_AUX_RATE 50
set PWM_AUX_OUT 1234
set PWM_AUX_DISARMED 1500
set PWM_AUX_MIN 1000
set PWM_AUX_MAX 2000

In the first block those are actually shell variables with the same names as parameters.
In the second block note the comments about env var’s vs. parameters.

Thanks for your answers, @Andreas_Hoffmann I had already tested changing the variables that you suggested and it didn’t work. Moreover I’m interested in changing only some of the AUX output channels to some values (for example AUX out 1 to 1000 and AUX out 2 to 1500), that’s why I wanted to be able to determine which outputs would be affected by the change.
@Mark_Whitehorn is the following command what you suggest?

pwm disarmed -c 56 -p 1500 -d /dev/pwm_output1

I will try and let you know if it works or not.