Set unknown channels to zero, since centering them is a slightly dangerous guess

This commit is contained in:
Lorenz Meier
2013-05-29 18:29:41 +02:00
parent f6570172da
commit 5f2571dd01

View File

@@ -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;
}
}