aboutsummaryrefslogtreecommitdiff
path: root/apps/px4io/px4io.c
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2012-11-30 14:57:54 +0100
committerLorenz Meier <lm@inf.ethz.ch>2012-11-30 14:57:54 +0100
commitef4a54666d760a18b18800163a24faf5883c1e61 (patch)
treec1d5dfdb2faccb69ef7a3d65ccd577ba56bac147 /apps/px4io/px4io.c
parent31c5425e5006802751ed24ef97e140dea53d3883 (diff)
downloadpx4-firmware-ef4a54666d760a18b18800163a24faf5883c1e61.tar.gz
px4-firmware-ef4a54666d760a18b18800163a24faf5883c1e61.tar.bz2
px4-firmware-ef4a54666d760a18b18800163a24faf5883c1e61.zip
Harmonized PPM, S.BUS and DSM input (order: first preference S.Bus, then DSM, then PPM, first available and valid source is chosen), tested with FMU, valid channel inputs
Diffstat (limited to 'apps/px4io/px4io.c')
-rw-r--r--apps/px4io/px4io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/px4io/px4io.c b/apps/px4io/px4io.c
index ba16ce247..34b9c8c49 100644
--- a/apps/px4io/px4io.c
+++ b/apps/px4io/px4io.c
@@ -58,6 +58,8 @@ struct sys_state_s system_state;
int user_start(int argc, char *argv[])
{
+ /* reset all to zero */
+ memset(&system_state, 0, sizeof(system_state));
/* configure the high-resolution time/callout interface */
hrt_init();