mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 15:43:34 +08:00
move posix/tests/hrt_test to systemcmds/tests/hrt_test
This commit is contained in:
committed by
David Sidrane
parent
750e66f43b
commit
fecdfe5fbc
@@ -103,3 +103,5 @@ px4_add_module(
|
|||||||
pwm_limit
|
pwm_limit
|
||||||
version
|
version
|
||||||
)
|
)
|
||||||
|
|
||||||
|
add_subdirectory(hrt_test)
|
||||||
|
|||||||
+2
-2
@@ -31,11 +31,11 @@
|
|||||||
#
|
#
|
||||||
############################################################################
|
############################################################################
|
||||||
px4_add_module(
|
px4_add_module(
|
||||||
MODULE platforms__posix__tests__hrt_test
|
MODULE systemcmds__tests__hrt_test
|
||||||
MAIN hrt_test
|
MAIN hrt_test
|
||||||
SRCS
|
SRCS
|
||||||
hrt_test_main.cpp
|
hrt_test_main.cpp
|
||||||
hrt_test_start_posix.cpp
|
hrt_test_start.cpp
|
||||||
hrt_test.cpp
|
hrt_test.cpp
|
||||||
DEPENDS
|
DEPENDS
|
||||||
)
|
)
|
||||||
+5
-3
@@ -39,10 +39,12 @@
|
|||||||
* @author Mark Charlebois <charlebm@gmail.com>
|
* @author Mark Charlebois <charlebm@gmail.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "px4_log.h"
|
|
||||||
#include <px4_time.h>
|
|
||||||
#include <drivers/drv_hrt.h>
|
|
||||||
#include "hrt_test.h"
|
#include "hrt_test.h"
|
||||||
|
|
||||||
|
#include <drivers/drv_hrt.h>
|
||||||
|
#include <px4_log.h>
|
||||||
|
#include <px4_time.h>
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
+5
-2
@@ -37,10 +37,13 @@
|
|||||||
*
|
*
|
||||||
* @author Mark Charlebois <charlebm@gmail.com>
|
* @author Mark Charlebois <charlebm@gmail.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "hrt_test.h"
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
#include <px4_middleware.h>
|
#include <px4_middleware.h>
|
||||||
#include <px4_app.h>
|
#include <px4_app.h>
|
||||||
#include "hrt_test.h"
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
int PX4_MAIN(int argc, char **argv)
|
int PX4_MAIN(int argc, char **argv)
|
||||||
{
|
{
|
||||||
+5
-3
@@ -37,13 +37,15 @@
|
|||||||
* @author Mark Charlebois <mcharleb@gmail.com>
|
* @author Mark Charlebois <mcharleb@gmail.com>
|
||||||
*/
|
*/
|
||||||
#include "hrt_test.h"
|
#include "hrt_test.h"
|
||||||
#include <px4_log.h>
|
|
||||||
#include <px4_app.h>
|
|
||||||
#include <px4_tasks.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sched.h>
|
#include <sched.h>
|
||||||
|
|
||||||
|
#include <px4_log.h>
|
||||||
|
#include <px4_app.h>
|
||||||
|
#include <px4_tasks.h>
|
||||||
|
|
||||||
static int daemon_task; /* Handle of deamon task / thread */
|
static int daemon_task; /* Handle of deamon task / thread */
|
||||||
|
|
||||||
extern "C" __EXPORT int hrt_test_main(int argc, char *argv[]);
|
extern "C" __EXPORT int hrt_test_main(int argc, char *argv[]);
|
||||||
Reference in New Issue
Block a user