aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2012-09-19 07:42:32 +0200
committerLorenz Meier <lm@inf.ethz.ch>2012-09-19 07:42:32 +0200
commit855fbe854372819f7a67225f932bb6fd673ef655 (patch)
tree667e2e77cce90c0b47d8af5bdf235c47f73e5e5e
parentc0cc180876858a384d397775f63a1555d8089cb3 (diff)
downloadpx4-firmware-855fbe854372819f7a67225f932bb6fd673ef655.tar.gz
px4-firmware-855fbe854372819f7a67225f932bb6fd673ef655.tar.bz2
px4-firmware-855fbe854372819f7a67225f932bb6fd673ef655.zip
Minor style and documentation cleanups
-rw-r--r--apps/attitude_estimator_ekf/attitude_estimator_ekf_main.c9
-rw-r--r--apps/examples/px4_deamon_app/px4_deamon_app.c28
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 <naegelit@student.ethz.ch>
- * Laurens Mackay <mackayl@student.ethz.ch>
* Lorenz Meier <lm@inf.ethz.ch>
*
* 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 <nuttx/config.h>
#include <unistd.h>
#include <stdlib.h>
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;
+}