aboutsummaryrefslogtreecommitdiff
path: root/ROMFS/px4fmu_common/init.d/10_io_f330
diff options
context:
space:
mode:
authorAnton Babushkin <anton.babushkin@me.com>2013-08-15 10:33:45 +0200
committerAnton Babushkin <anton.babushkin@me.com>2013-08-15 10:33:45 +0200
commit7476b03543f879df5ea29d44be147ff4926f8216 (patch)
treee1c056fa3e12b2c2c3ae601ae2835ac086b60338 /ROMFS/px4fmu_common/init.d/10_io_f330
parent39ae01dd07d53e3509826ae3737fc6a509adec34 (diff)
parentd2f19c7d84030ad6ed1f6c17538fa96864c5dcef (diff)
downloadpx4-firmware-7476b03543f879df5ea29d44be147ff4926f8216.tar.gz
px4-firmware-7476b03543f879df5ea29d44be147ff4926f8216.tar.bz2
px4-firmware-7476b03543f879df5ea29d44be147ff4926f8216.zip
Merge branch 'master' into new_state_machine_drton
Diffstat (limited to 'ROMFS/px4fmu_common/init.d/10_io_f330')
-rw-r--r--ROMFS/px4fmu_common/init.d/10_io_f33037
1 files changed, 7 insertions, 30 deletions
diff --git a/ROMFS/px4fmu_common/init.d/10_io_f330 b/ROMFS/px4fmu_common/init.d/10_io_f330
index 4107fab4f..4450eb50d 100644
--- a/ROMFS/px4fmu_common/init.d/10_io_f330
+++ b/ROMFS/px4fmu_common/init.d/10_io_f330
@@ -15,20 +15,19 @@ then
# Set all params here, then disable autoconfig
param set SYS_AUTOCONFIG 0
- param set MC_ATTRATE_D 0.007
+ param set MC_ATTRATE_D 0.005
param set MC_ATTRATE_I 0.0
- param set MC_ATTRATE_P 0.13
+ param set MC_ATTRATE_P 0.1
param set MC_ATT_D 0.0
param set MC_ATT_I 0.0
- param set MC_ATT_P 7.0
- param set MC_POS_P 0.1
+ param set MC_ATT_P 4.5
param set MC_RCLOSS_THR 0.0
param set MC_YAWPOS_D 0.0
- param set MC_YAWPOS_I 0.5
- param set MC_YAWPOS_P 1.0
+ param set MC_YAWPOS_I 0.3
+ param set MC_YAWPOS_P 0.6
param set MC_YAWRATE_D 0.0
param set MC_YAWRATE_I 0.0
- param set MC_YAWRATE_P 0.2
+ param set MC_YAWRATE_P 0.1
param save /fs/microsd/params
fi
@@ -41,28 +40,6 @@ fi
param set MAV_TYPE 2
#
-# Check if PX4IO Firmware should be upgraded (from Andrew Tridgell)
-#
-if [ -f /fs/microsd/px4io2.bin ]
-then
- echo "PX4IO Firmware found. Checking Upgrade.."
- if cmp /fs/microsd/px4io2.bin /fs/microsd/px4io2.cur
- then
- echo "No newer version, skipping upgrade."
- else
- echo "Loading /fs/microsd/px4io2.bin"
- if px4io update /fs/microsd/px4io2.bin > /fs/microsd/px4io2.log
- then
- cp /fs/microsd/px4io2.bin /fs/microsd/px4io2.cur
- echo "Flashed /fs/microsd/px4io2.bin OK" >> /fs/microsd/px4io2.log
- else
- echo "Failed flashing /fs/microsd/px4io2.bin" >> /fs/microsd/px4io2.log
- echo "Failed to upgrade PX4IO2 firmware - check if PX4IO2 is in bootloader mode"
- fi
- fi
-fi
-
-#
# Start MAVLink (depends on orb)
#
mavlink start
@@ -128,7 +105,7 @@ multirotor_att_control start
#
# Start logging
#
-sdlog2 start -r 20 -a -b 14
+sdlog2 start -r 20 -a -b 16
#
# Start system state