Repository navigation
Replies: 1 comment
|
The error comes from include paths. What worked for me on v7.0.0 (
# apps/sch_lab/CMakeLists.txt
add_cfe_app_dependency(sch_lab sample_app)
# apps/to_lab/CMakeLists.txt
add_cfe_app_dependency(to_lab sample_app)
#include "cfe_msgids.h"
#include "sample_app_msgids.h"
...
.Config = {
{CFE_SB_MSGID_WRAP_VALUE(SAMPLE_APP_SEND_HK_MID), 100, 0}, /* every 100 ticks = 1 s at TickRate 100 */
}
{CFE_SB_MSGID_WRAP_VALUE(SAMPLE_APP_HK_TLM_MID), {0, 0}, 4},Then On your second question: there's no tutorial for the Draco If this solves it, please mark it as the answer so others with the same problem can find it. |
Uh oh!
There was an error while loading. Please reload this page.
I'm just checking out Draco v7.0.0 and running with sample_defs as described in the 'Setup' instructions, then building and running as described in the 'Build and Run' instructions. Next, I bring up the cFS-GroundSystem as described in the 'Send commands, receive telemetry' section. I'm able to send commands to all the apps including sample_app. However, I didn't see any HK telemetry making it to the cfs-GroundSystem. So, I tried adding the SAMPLE_APP_SEND_HK_MID to the Schedule table in sch_lab so that sch_lab would send the SAMPLE_APP_SEND_HK_MID message to sample_app. But, here's where I'm stuck and need help. I see the SAMPLE_APP_SEND_HK_MID message definition in default_sample_app_msgids.h (in a config directory), but I can't figure out how to setup the build to make SAMPLE_APP_SEND_HK_MID available to sch_lab. I've tried including sample_app_msgids.h in sch_lab_table.c and adding the default_* files to the *_CONFIG_FILE_LIST's in arch_build.cmake and mission_build.cmake, but I'm still getting an error about ‘SAMPLE_APP_MISSION_SEND_HK_TOPICID’ undeclared here.
All reactions