Skip to content

Commit

Permalink
Merge pull request nasa#37 from jphickey/fix-36-queue-depth
Browse files Browse the repository at this point in the history
Fix nasa#36, Use OS_MAX_QUEUE_DEPTH rather than 64.
  • Loading branch information
astrogeco committed May 19, 2020
2 parents 97d660a + 76a0d31 commit d814475
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fsw/src/to_lab_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ void TO_LAB_init(void)

CFE_ES_RegisterApp();
TO_LAB_Global.downlink_on = false;
PipeDepth = 8;
PipeDepth = TO_LAB_CMD_PIPE_DEPTH;
strcpy(PipeName, "TO_LAB_CMD_PIPE");
ToTlmPipeDepth = 64;
ToTlmPipeDepth = TO_LAB_TLM_PIPE_DEPTH;
strcpy(ToTlmPipeName, "TO_LAB_TLM_PIPE");

/*
Expand Down
10 changes: 10 additions & 0 deletions fsw/src/to_lab_app.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@
#define TO_TASK_MSEC 500 /* run at 2 Hz */
#define TO_UNUSED CFE_SB_MSGID_RESERVED

/**
* Depth of pipe for commands to the TO_LAB application itself
*/
#define TO_LAB_CMD_PIPE_DEPTH 8

/**
* Depth of pipe for telemetry forwarded through the TO_LAB application
*/
#define TO_LAB_TLM_PIPE_DEPTH OS_QUEUE_MAX_DEPTH

#define cfgTLM_ADDR "192.168.1.81"
#define cfgTLM_PORT 1235
#define TO_LAB_VERSION_NUM "5.1.0"
Expand Down

0 comments on commit d814475

Please sign in to comment.