diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-07-18 15:20:36 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-07-18 15:20:36 +0200 |
commit | e19d2e94ec5c38c2800a7001a2a04102734012d4 (patch) | |
tree | e4bf0cfc838eb7d462afefbd2e35f6183d904689 /ROMFS/px4fmu_common | |
parent | a5c8d8c5f20584f32acaa03e69681a13799fff6d (diff) | |
download | px4-firmware-e19d2e94ec5c38c2800a7001a2a04102734012d4.tar.gz px4-firmware-e19d2e94ec5c38c2800a7001a2a04102734012d4.tar.bz2 px4-firmware-e19d2e94ec5c38c2800a7001a2a04102734012d4.zip |
Hotfix: Ensured there are never two filters running at the same time if auto-magic happens via USB link
Diffstat (limited to 'ROMFS/px4fmu_common')
-rw-r--r-- | ROMFS/px4fmu_common/init.d/rc.usb | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/ROMFS/px4fmu_common/init.d/rc.usb b/ROMFS/px4fmu_common/init.d/rc.usb index 986821994..147521fd1 100644 --- a/ROMFS/px4fmu_common/init.d/rc.usb +++ b/ROMFS/px4fmu_common/init.d/rc.usb @@ -22,9 +22,16 @@ commander start sh /etc/init.d/rc.sensors # Start one of the estimators -if attitude_estimator_ekf start +if attitude_estimator_ekf status then - echo "estimating attitude" + echo "multicopter att filter running" +else + if att_pos_estimator_ekf status + then + echo "fixedwing att filter running" + else + attitude_estimator_ekf start + fi fi # Start GPS |