Skip to content

Commit ebce0dc

Browse files
author
MarcSchlichting
committed
testapp3 updated
1 parent 05aa0d8 commit ebce0dc

File tree

7 files changed

+13
-180
lines changed

7 files changed

+13
-180
lines changed

.vscode/c_cpp_properties.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
"${workspaceFolder}/src/lib",
3232
"${workspaceFolder}/src/lib",
3333
"${workspaceFolder}/src/lib/matrix",
34-
"${workspaceFolder}/src/modules"
34+
"${workspaceFolder}/src/modules",
35+
"${workspaceFolder}/src/modules/testapp3"
3536
],
3637
"intelliSenseMode": "${default}"
3738
},
@@ -72,4 +73,4 @@
7273
}
7374
],
7475
"version": 4
75-
}
76+
}

src/modules/testapp3/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
px4_add_module(
2-
MODULE examples__testapp3
2+
MODULE modules__testapp3
33
MAIN testapp3
44
COMPILE_FLAGS
55
-Wno-cast-align # TODO: fix and enable
66
-Wno-address-of-packed-member # TODO: fix in c_library_v2
77
SRCS
88
testapp3.cpp
9-
helper1.cpp
9+
help1.cpp
1010
DEPENDS
1111
UNITY_BUILD
1212
)

src/modules/testapp3/help1.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#include <help1.h>
2+
3+
void testfunction(void){
4+
printf("this is from the testfunction");
5+
}

src/modules/testapp3/help1.h

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
void testfunction(void);

src/modules/testapp3/helper1.cpp

-5
This file was deleted.

src/modules/testapp3/helper1.h

-170
This file was deleted.

src/modules/testapp3/testapp3.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@
108108
#include <uORB/topics/vehicle_trajectory_waypoint.h>
109109

110110
#include <uORB/topics/sensor_combined.h>
111+
#include <help1.h>
112+
111113

112114
class Mavlink;
113115

@@ -150,7 +152,6 @@ uORB::PublicationQueued<vehicle_command_s> _cmd_pub{ORB_ID(vehicle_command)};
150152

151153

152154

153-
#include <helper1.h>
154155

155156

156157

0 commit comments

Comments
 (0)