diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-05-29 18:29:41 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-05-29 18:29:41 +0200 |
commit | 5f2571dd01c90ba1209d263c52d818225644ce07 (patch) | |
tree | d938a1811b6b8cda695c49467bc7a87a90c41896 /src/drivers/px4io | |
parent | f6570172da02bba79b5e050c6e02b86dc96551c9 (diff) | |
download | px4-firmware-5f2571dd01c90ba1209d263c52d818225644ce07.tar.gz px4-firmware-5f2571dd01c90ba1209d263c52d818225644ce07.tar.bz2 px4-firmware-5f2571dd01c90ba1209d263c52d818225644ce07.zip |
Set unknown channels to zero, since centering them is a slightly dangerous guess
Diffstat (limited to 'src/drivers/px4io')
-rw-r--r-- | src/drivers/px4io/px4io.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/px4io/px4io.cpp b/src/drivers/px4io/px4io.cpp index 873d7eb82..0a31831f0 100644 --- a/src/drivers/px4io/px4io.cpp +++ b/src/drivers/px4io/px4io.cpp @@ -1758,7 +1758,8 @@ px4io_main(int argc, char *argv[]) errx(1, "value out of range of 800 < value < 2200. Aborting."); } } else { - failsafe[i] = 1500; + /* a zero value will result in stopping to output any pulse */ + failsafe[i] = 0; } } |