diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-05-15 08:17:31 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-05-15 08:17:31 +0200 |
commit | 0655aeb7ecb73eeaedfbd41171f07f9a247b32db (patch) | |
tree | 581f391e363eb80159e2b0140cbe3e6772415bf2 /ROMFS/px4fmu_common/init.d/rc.usb | |
parent | 4bc06381a9b44e7da22f21c20082146ad5d29c1d (diff) | |
download | px4-firmware-0655aeb7ecb73eeaedfbd41171f07f9a247b32db.tar.gz px4-firmware-0655aeb7ecb73eeaedfbd41171f07f9a247b32db.tar.bz2 px4-firmware-0655aeb7ecb73eeaedfbd41171f07f9a247b32db.zip |
startup: NuttX seems to free memory only AFTER the next command is issued, requiring us to give it some time to do memory management so it does not keep starting tasks on top of each other. May need some consideration on main startup script as well.
Diffstat (limited to 'ROMFS/px4fmu_common/init.d/rc.usb')
-rw-r--r-- | ROMFS/px4fmu_common/init.d/rc.usb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ROMFS/px4fmu_common/init.d/rc.usb b/ROMFS/px4fmu_common/init.d/rc.usb index afdba92af..b2cd62222 100644 --- a/ROMFS/px4fmu_common/init.d/rc.usb +++ b/ROMFS/px4fmu_common/init.d/rc.usb @@ -6,11 +6,17 @@ mavlink start -r 10000 -d /dev/ttyACM0 # Enable a number of interesting streams we want via USB mavlink stream -d /dev/ttyACM0 -s NAMED_VALUE_FLOAT -r 10 +usleep 1000 mavlink stream -d /dev/ttyACM0 -s OPTICAL_FLOW -r 10 +usleep 1000 mavlink stream -d /dev/ttyACM0 -s VFR_HUD -r 20 +usleep 1000 mavlink stream -d /dev/ttyACM0 -s ATTITUDE -r 20 +usleep 1000 mavlink stream -d /dev/ttyACM0 -s ATTITUDE_CONTROLS -r 30 +usleep 1000 mavlink stream -d /dev/ttyACM0 -s SERVO_OUTPUT_RAW_0 -r 20 +usleep 1000 # Exit shell to make it available to MAVLink exit |