From 855fbe854372819f7a67225f932bb6fd673ef655 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Wed, 19 Sep 2012 07:42:32 +0200 Subject: Minor style and documentation cleanups --- .../attitude_estimator_ekf_main.c | 9 ++----- apps/examples/px4_deamon_app/px4_deamon_app.c | 28 +++++++++++----------- 2 files changed, 16 insertions(+), 21 deletions(-) diff --git a/apps/attitude_estimator_ekf/attitude_estimator_ekf_main.c b/apps/attitude_estimator_ekf/attitude_estimator_ekf_main.c index 09cbdd4e9..4b3733be3 100644 --- a/apps/attitude_estimator_ekf/attitude_estimator_ekf_main.c +++ b/apps/attitude_estimator_ekf/attitude_estimator_ekf_main.c @@ -2,7 +2,6 @@ * * Copyright (C) 2008-2012 PX4 Development Team. All rights reserved. * Author: Tobias Naegeli - * Laurens Mackay * Lorenz Meier * * Redistribution and use in source and binary forms, with or without @@ -35,14 +34,10 @@ ****************************************************************************/ /* - * @file Extended Kalman Filter for Attitude Estimation + * @file attitude_estimator_ekf_main.c + * Extended Kalman Filter for Attitude Estimation. */ - -/**************************************************************************** - * Included Files - ****************************************************************************/ - #include #include #include diff --git a/apps/examples/px4_deamon_app/px4_deamon_app.c b/apps/examples/px4_deamon_app/px4_deamon_app.c index 9d1b40acf..053163789 100644 --- a/apps/examples/px4_deamon_app/px4_deamon_app.c +++ b/apps/examples/px4_deamon_app/px4_deamon_app.c @@ -60,20 +60,6 @@ int px4_deamon_thread_main(int argc, char *argv[]); */ static void usage(const char *reason); -int px4_deamon_thread_main(int argc, char *argv[]) { - - printf("[deamon] starting\n"); - - while (!thread_should_exit) { - printf("Hello Deamon!\n"); - sleep(10); - } - - printf("[deamon] exiting.\n"); - - return 0; -} - static void usage(const char *reason) { @@ -127,3 +113,17 @@ int px4_deamon_app_main(int argc, char *argv[]) usage("unrecognized command"); exit(1); } + +int px4_deamon_thread_main(int argc, char *argv[]) { + + printf("[deamon] starting\n"); + + while (!thread_should_exit) { + printf("Hello Deamon!\n"); + sleep(10); + } + + printf("[deamon] exiting.\n"); + + return 0; +} -- cgit v1.2.3