diff options
author | px4dev <px4@purgatory.org> | 2012-11-30 22:36:17 -0800 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2012-11-30 22:36:17 -0800 |
commit | efd3b9dea689ef4244a3a2fd9f4217a544b254ee (patch) | |
tree | 3562099b48f19729ab2b23b422f5e4fa042b1d60 /apps/px4io/px4io.c | |
parent | 3e036e26c9951acaadfed25d0e9e7bc1f1c73e89 (diff) | |
download | px4-firmware-efd3b9dea689ef4244a3a2fd9f4217a544b254ee.tar.gz px4-firmware-efd3b9dea689ef4244a3a2fd9f4217a544b254ee.tar.bz2 px4-firmware-efd3b9dea689ef4244a3a2fd9f4217a544b254ee.zip |
Clean up the FMU communications init.
Diffstat (limited to 'apps/px4io/px4io.c')
-rw-r--r-- | apps/px4io/px4io.c | 10 |
1 files changed, 3 insertions, 7 deletions
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); |