diff options
author | Helen Oleynikova <helenoleynikova@gmail.com> | 2014-03-05 15:07:05 +0100 |
---|---|---|
committer | Helen Oleynikova <helenoleynikova@gmail.com> | 2014-03-05 15:07:05 +0100 |
commit | 5976815f2baff6b17ca41dbb28e3e5698c12a180 (patch) | |
tree | 809f58edd56556eec74b0626795eb502662c0b87 | |
parent | 9ffa5a665a2ac8b887cbd9383eab1947137f0def (diff) | |
download | px4-firmware-5976815f2baff6b17ca41dbb28e3e5698c12a180.tar.gz px4-firmware-5976815f2baff6b17ca41dbb28e3e5698c12a180.tar.bz2 px4-firmware-5976815f2baff6b17ca41dbb28e3e5698c12a180.zip |
Fixed startup parameters.
-rw-r--r-- | ROMFS/px4fmu_common/init.d/4008_ardrone | 29 | ||||
-rw-r--r-- | ROMFS/px4fmu_common/init.d/rcS | 2 |
2 files changed, 15 insertions, 16 deletions
diff --git a/ROMFS/px4fmu_common/init.d/4008_ardrone b/ROMFS/px4fmu_common/init.d/4008_ardrone index d6b2319f9..d38796cca 100644 --- a/ROMFS/px4fmu_common/init.d/4008_ardrone +++ b/ROMFS/px4fmu_common/init.d/4008_ardrone @@ -11,24 +11,23 @@ sh /etc/init.d/rc.mc_defaults # # Load default params for this platform # -if param compare SYS_AUTOCONFIG 1 +if [ $DO_AUTOCONFIG == yes ] then # Set all params here, then disable autoconfig - param set MC_ATTRATE_D 0 - param set MC_ATTRATE_I 0 - param set MC_ATTRATE_P 0.13 - param set MC_ATT_D 0 - param set MC_ATT_I 0.3 - param set MC_ATT_P 5 - param set MC_YAWPOS_D 0.1 - param set MC_YAWPOS_I 0.15 - param set MC_YAWPOS_P 1 - param set MC_YAWRATE_D 0 - param set MC_YAWRATE_I 0 + param set MC_ROLL_P 5.0 + param set MC_ROLLRATE_P 0.13 + param set MC_ROLLRATE_I 0.0 + param set MC_ROLLRATE_D 0.0 + param set MC_PITCH_P 5.0 + param set MC_PITCHRATE_P 0.13 + param set MC_PITCHRATE_I 0.0 + param set MC_PITCHRATE_D 0.0 + param set MC_YAW_P 1.0 + param set MC_YAW_D 0.1 param set MC_YAWRATE_P 0.15 - - param set SYS_AUTOCONFIG 0 - param save + param set MC_YAWRATE_I 0.0 + param set MC_YAWRATE_D 0.0 + param set MC_YAW_FF 0.15 fi set FMU_MODE gpio_serial diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS index 1baac0eb3..9983aa0e7 100644 --- a/ROMFS/px4fmu_common/init.d/rcS +++ b/ROMFS/px4fmu_common/init.d/rcS @@ -387,7 +387,7 @@ then mavlink start -b 230400 -d /dev/ttyACM0 usleep 5000 else - if [ $TTYS1_BUSY == yes -o $ARDRONE == yes] + if [ $TTYS1_BUSY == yes -o $ARDRONE == yes ] then # Start MAVLink on ttyS0, because FMU ttyS1 pins configured as something else mavlink start -d /dev/ttyS0 |