mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 10:46:33 +08:00
Minor style and documentation cleanups
This commit is contained in:
@@ -2,7 +2,6 @@
|
|||||||
*
|
*
|
||||||
* Copyright (C) 2008-2012 PX4 Development Team. All rights reserved.
|
* Copyright (C) 2008-2012 PX4 Development Team. All rights reserved.
|
||||||
* Author: Tobias Naegeli <naegelit@student.ethz.ch>
|
* Author: Tobias Naegeli <naegelit@student.ethz.ch>
|
||||||
* Laurens Mackay <mackayl@student.ethz.ch>
|
|
||||||
* Lorenz Meier <lm@inf.ethz.ch>
|
* Lorenz Meier <lm@inf.ethz.ch>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* 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 <nuttx/config.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|||||||
@@ -60,20 +60,6 @@ int px4_deamon_thread_main(int argc, char *argv[]);
|
|||||||
*/
|
*/
|
||||||
static void usage(const char *reason);
|
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
|
static void
|
||||||
usage(const char *reason)
|
usage(const char *reason)
|
||||||
{
|
{
|
||||||
@@ -127,3 +113,17 @@ int px4_deamon_app_main(int argc, char *argv[])
|
|||||||
usage("unrecognized command");
|
usage("unrecognized command");
|
||||||
exit(1);
|
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;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user