move posix/tests/hello to examples/hello and include everywhere

This commit is contained in:
Daniel Agar
2018-11-24 11:52:07 -05:00
committed by David Sidrane
parent 85c5fb4295
commit e45e7aa8a6
38 changed files with 40 additions and 8 deletions
@@ -30,12 +30,14 @@
# POSSIBILITY OF SUCH DAMAGE.
#
############################################################################
px4_add_module(
MODULE platforms__posix__tests__hello
MODULE examples__hello
MAIN hello
COMPILE_FLAGS
SRCS
hello_main.cpp
hello_start_posix.cpp
hello_start.cpp
hello_example.cpp
DEPENDS
)
@@ -40,6 +40,7 @@
*/
#include "hello_example.h"
#include <unistd.h>
#include <stdio.h>
@@ -37,9 +37,11 @@
*
* @author Mark Charlebois <charlebm@gmail.com>
*/
#include "hello_example.h"
#include <px4_middleware.h>
#include <px4_app.h>
#include "hello_example.h"
#include <stdio.h>
int PX4_MAIN(int argc, char **argv)
@@ -46,10 +46,6 @@
#include <string.h>
#include <sched.h>
#define SCHED_DEFAULT SCHED_FIFO
#define SCHED_PRIORITY_MAX sched_get_priority_max(SCHED_FIFO)
//#define SCHED_PRIORITY_DEFAULT sched_get_priority_max(SCHED_FIFO)
static int daemon_task; /* Handle of deamon task / thread */
//using namespace px4;