From ef4a54666d760a18b18800163a24faf5883c1e61 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Fri, 30 Nov 2012 14:57:54 +0100 Subject: 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 --- apps/px4io/px4io.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/px4io/px4io.c') 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(); -- cgit v1.2.3