From 857c3d2efd49085dfd28827b06d96776340e5a09 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Tue, 5 Nov 2013 16:59:34 +0100 Subject: Startup scripts: Corrected cases where commander was not started, updated several outdated scripts --- ROMFS/px4fmu_common/init.d/12-13_hex | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'ROMFS/px4fmu_common/init.d/12-13_hex') diff --git a/ROMFS/px4fmu_common/init.d/12-13_hex b/ROMFS/px4fmu_common/init.d/12-13_hex index 0f0bb05ce..f83f6cfd0 100644 --- a/ROMFS/px4fmu_common/init.d/12-13_hex +++ b/ROMFS/px4fmu_common/init.d/12-13_hex @@ -61,10 +61,6 @@ then usleep 5000 sh /etc/init.d/rc.io - # Set PWM values for DJI ESCs - px4io idle 900 900 900 900 900 900 - px4io min 1200 1200 1200 1200 1200 1200 - px4io max 1900 1900 1900 1900 1900 1900 else # Start MAVLink (on UART1 / ttyS0) mavlink start -d /dev/ttyS0 @@ -77,12 +73,19 @@ fi # # Load mixer # -mixer load /dev/pwm_output $MIXER +mixer load /dev/pwm_output /etc/mixers/FMU_hex_x.mix # # Set PWM output frequency to 400 Hz # -pwm -u 400 -m 0xff +pwm rate -c 123456 -r 400 + +# +# Set disarmed, min and max PWM signals +# +pwm disarmed -c 123456 -p 900 +pwm min -c 123456 -p 1100 +pwm max -c 123456 -p 1900 # # Start common for all multirotors apps -- cgit v1.2.3