From efd3b9dea689ef4244a3a2fd9f4217a544b254ee Mon Sep 17 00:00:00 2001 From: px4dev Date: Fri, 30 Nov 2012 22:36:17 -0800 Subject: Clean up the FMU communications init. --- apps/px4io/px4io.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'apps/px4io/px4io.c') diff --git a/apps/px4io/px4io.c b/apps/px4io/px4io.c index ba16ce247..bba236322 100644 --- a/apps/px4io/px4io.c +++ b/apps/px4io/px4io.c @@ -76,6 +76,9 @@ int user_start(int argc, char *argv[]) /* start the safety switch handler */ safety_init(); + /* configure the first 8 PWM outputs (i.e. all of them) */ + up_pwm_servo_init(0xff); + /* start the flight control signal handler */ task_create("FCon", SCHED_PRIORITY_DEFAULT, @@ -84,13 +87,6 @@ int user_start(int argc, char *argv[]) NULL); - /* initialise the FMU communications interface */ - comms_init(); - - /* configure the first 8 PWM outputs (i.e. all of them) */ - /* note, must do this after comms init to steal back PA0, which is CTS otherwise */ - up_pwm_servo_init(0xff); - struct mallinfo minfo = mallinfo(); lib_lowprintf("free %u largest %u\n", minfo.mxordblk, minfo.fordblks); -- cgit v1.2.3