Skip to content

Fix #209, add number of successful subscriptions to initialisation event message #210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion fsw/src/to_lab_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ CFE_Status_t TO_LAB_init(void)
TO_LAB_BUILD_CODENAME, TO_LAB_LAST_OFFICIAL);

CFE_EVS_SendEvent(TO_LAB_INIT_INF_EID, CFE_EVS_EventType_INFORMATION,
"TO Lab Initialized.%s, Awaiting enable command.", VersionString);
"TO Lab Initialized.%s, Subscribed to %d messages. Awaiting enable command.", VersionString,
i);
}

/*
Expand Down
12 changes: 6 additions & 6 deletions fsw/src/to_lab_app.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ typedef struct
TO_LAB_HkTlm_t HkTlm;
TO_LAB_DataTypesTlm_t DataTypesTlm;

TO_LAB_Subs_t * SubsTblPtr;
TO_LAB_Subs_t *SubsTblPtr;
CFE_TBL_Handle_t SubsTblHandle;

} TO_LAB_GlobalData_t;
Expand All @@ -63,11 +63,11 @@ typedef struct
* Function Prototypes
************************************************************************/

void TO_LAB_AppMain(void);
void TO_LAB_openTLM(void);
int32 TO_LAB_init(void);
void TO_LAB_process_commands(void);
void TO_LAB_forward_telemetry(void);
void TO_LAB_AppMain(void);
void TO_LAB_openTLM(void);
CFE_Status_t TO_LAB_init(void);
void TO_LAB_process_commands(void);
void TO_LAB_forward_telemetry(void);

/******************************************************************************/

Expand Down
12 changes: 6 additions & 6 deletions fsw/src/to_lab_cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ CFE_Status_t TO_LAB_EnableOutputCmd(const TO_LAB_EnableOutputCmd_t *data)
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
CFE_Status_t TO_LAB_NoopCmd(const TO_LAB_NoopCmd_t *data)
{
char VersionString[TO_LAB_CFG_MAX_VERSION_STR_LEN];
char VersionString[TO_LAB_CFG_MAX_VERSION_STR_LEN];

CFE_Config_GetVersionString(VersionString, TO_LAB_CFG_MAX_VERSION_STR_LEN, "TO Lab",
TO_LAB_VERSION, TO_LAB_BUILD_CODENAME, TO_LAB_LAST_OFFICIAL);
CFE_Config_GetVersionString(VersionString, TO_LAB_CFG_MAX_VERSION_STR_LEN, "TO Lab", TO_LAB_VERSION,
TO_LAB_BUILD_CODENAME, TO_LAB_LAST_OFFICIAL);

CFE_EVS_SendEvent(TO_LAB_NOOP_INF_EID, CFE_EVS_EventType_INFORMATION, "TO: NOOP command. %s", VersionString);
CFE_EVS_SendEvent(TO_LAB_NOOP_INF_EID, CFE_EVS_EventType_INFORMATION, "TO: NOOP command. %s", VersionString);

++TO_LAB_Global.HkTlm.Payload.CommandCounter;
return CFE_SUCCESS;
++TO_LAB_Global.HkTlm.Payload.CommandCounter;
return CFE_SUCCESS;
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
Expand Down
4 changes: 2 additions & 2 deletions fsw/src/to_lab_dispatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ void TO_LAB_TaskPipe(const CFE_SB_Buffer_t *SBBufPtr)
break;

default:
CFE_EVS_SendEvent(TO_LAB_MID_ERR_EID, CFE_EVS_EventType_ERROR, "L%d TO: Invalid Msg ID Rcvd 0x%x",
__LINE__, (unsigned int)CFE_SB_MsgIdToValue(MsgId));
CFE_EVS_SendEvent(TO_LAB_MID_ERR_EID, CFE_EVS_EventType_ERROR, "L%d TO: Invalid Msg ID Rcvd 0x%x", __LINE__,
(unsigned int)CFE_SB_MsgIdToValue(MsgId));
break;
}
}
17 changes: 9 additions & 8 deletions fsw/src/to_lab_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,17 @@
#define TO_LAB_VERSION_H

/* Development Build Macro Definitions */
#define TO_LAB_BUILD_NUMBER 62 /*!< Development Build: Number of commits since baseline */
#define TO_LAB_BUILD_BASELINE "equuleus-rc1" /*!< Development Build: git tag that is the base for the current development */
#define TO_LAB_BUILD_DEV_CYCLE "equuleus-rc2" /**< @brief Development: Release name for current development cycle */
#define TO_LAB_BUILD_CODENAME "Equuleus" /**< @brief: Development: Code name for the current build */
#define TO_LAB_BUILD_NUMBER 62 /*!< Development Build: Number of commits since baseline */
#define TO_LAB_BUILD_BASELINE \
"equuleus-rc1" /*!< Development Build: git tag that is the base for the current development */
#define TO_LAB_BUILD_DEV_CYCLE "equuleus-rc2" /**< @brief Development: Release name for current development cycle */
#define TO_LAB_BUILD_CODENAME "Equuleus" /**< @brief: Development: Code name for the current build */

/*
* Version Macros, see \ref cfsversions for definitions.
*/
#define TO_LAB_MAJOR_VERSION 2 /*!< @brief Major version number */
#define TO_LAB_MINOR_VERSION 3 /*!< @brief Minor version number */
#define TO_LAB_MAJOR_VERSION 2 /*!< @brief Major version number */
#define TO_LAB_MINOR_VERSION 3 /*!< @brief Minor version number */
#define TO_LAB_REVISION 0 /*!< @brief Revision version number. Value of 0 indicates a development version.*/

/**
Expand Down Expand Up @@ -61,9 +62,9 @@

/**
* @brief Max Version String length.
*
*
* Maximum length that a TO_LAB version string can be.
*
*
*/
#define TO_LAB_CFG_MAX_VERSION_STR_LEN 256

Expand Down
Loading