Skip to content

Commit

Permalink
Bulk update for 2.2.0 release candidate 1, see VDD for change summary
Browse files Browse the repository at this point in the history
  • Loading branch information
skliper committed May 9, 2022
1 parent 82bd57b commit 6d68cf8
Show file tree
Hide file tree
Showing 113 changed files with 153,598 additions and 13,212 deletions.
6 changes: 0 additions & 6 deletions .gitattributes

This file was deleted.

9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,12 @@ add_cfe_app(lc ${APP_SRC_FILES})
include_directories(fsw/src)
aux_source_directory(fsw/tables APP_TABLE_FILES)
add_cfe_tables(lc ${APP_TABLE_FILES})

# If UT is enabled, then add the tests from the subdirectory
# Note that this is an app, and therefore does not provide
# stub functions, as other entities would not typically make
# direct function calls into this application.
if (ENABLE_UNIT_TESTS)
add_subdirectory(unit-test)
endif (ENABLE_UNIT_TESTS)

18 changes: 8 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ core Flight System (cFS) Limit Checker (LC)
Open Source Release Readme
==========================

LC Release 2.1.2
LC Release Candidate 2.2.0

Date: 10/7/2020
Date: 9/2/2021

Introduction
-------------
Expand All @@ -20,8 +20,10 @@ Introduction

The LC application is written in C and depends on the cFS Operating System
Abstraction Layer (OSAL) and cFE components. There is additional LC application
specific configuration information contained in the application user's guide
available in https://github.com/nasa/LC/tree/master/docs/users_guide
specific configuration information contained in the application user's guide.

Developer's guide information can be generated using Doxygen:
doxygen lc_doxygen_config.txt

This software is licensed under the NASA Open Source Agreement.
http://ti.arc.nasa.gov/opensource/nosa
Expand All @@ -30,17 +32,13 @@ Introduction
Software Included
------------------

Limit Checker application (LC) 2.1.2
Limit Checker application (LC) 2.2.0


Software Required
------------------

Operating System Abstraction Layer 5.0 or higher can be
obtained at https://github.com/nasa/osal

core Flight Executive 6.8.0 or higher can be obtained at
https://github.com/nasa/cfe
cFS Caelum

Note: An integrated bundle including the cFE, OSAL, and PSP can
be obtained at https://github.com/nasa/cfs
Expand Down
Binary file added docs/LC_RequirementsToDesignTrace.docx
Binary file not shown.
Binary file removed docs/LC_v2.1.1_VersionDescriptionDocument.pdf
Binary file not shown.
Binary file added docs/LC_v2.2.0_AppRequirementsDocument.doc
Binary file not shown.
Binary file added docs/LC_v2.2.0_VersionDescriptionDocument.pdf
Binary file not shown.
Binary file not shown.
62 changes: 17 additions & 45 deletions docs/dox_src/users_guide/cfs_lc.dox
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
\mainpage CFS Limit Checker (LC) User's Guide

<UL>
<LI> \subpage cfslcrevhist
<LI> \subpage cfslcintro
<LI> \subpage cfslcovr
<LI> \subpage cfslcopr
Expand All @@ -18,34 +17,6 @@
</UL>
**/

/**
\page cfslcrevhist CFS Limit Checker User's Guide Revision History

\verbatim
$Log: cfs_lc.dox $
Revision 1.1.2.1 2017/08/07 14:38:03EDT sstrege

Revision 1.1 2015/07/26 15:40:18EDT rperera
Initial revision
Member added to project /CFS-APPs-PROJECT/lcx/docs/dox_src/users_guide/project.pj
Revision 1.1 2012/07/31 16:53:28EDT nschweis
Initial revision
Member added to project c:/MKSDATA/MKS-REPOSITORY/CFS-REPOSITORY/lcx/docs/dox_src/users_guide/project.pj
Revision 1.7 2011/07/27 14:15:15EDT wmoleski
Updated the Operation section to add more detail about actionpoint evaluation and added 2 new FAQs about
ActionPoints.
Revision 1.6 2010/03/08 08:28:12EST wmoleski
Updated the telemetry mnemonic mapping file and the User's Guide file.
Revision 1.5 2009/04/18 14:50:43EDT dkobe
Cleaned up comments for users guide generation
Revision 1.4 2009/04/18 13:49:37EDT dkobe
Corrected image links
Revision 1.3 2009/04/18 13:30:21EDT dkobe
Standardized some content
\endverbatim

Next: \ref cfslcintro
**/
/**
\page cfslcintro CFS Limit Checker Introduction

Expand Down Expand Up @@ -118,7 +89,6 @@
</TABLE>

Next: \ref cfslcovr <BR>
Prev: \ref cfslcrevhist
**/

/**
Expand Down Expand Up @@ -178,7 +148,7 @@
tests.

Watchpoints are evaluated whenever a message containing the telemetry point is received
by LC. Watchpoints may evaluate to #LC_WATCH_TRUE, #LC_WATCH_FALSE, #LC_WATCH_NOT_MEASURED
by LC. Watchpoints may evaluate to #LC_WATCH_TRUE, #LC_WATCH_FALSE, #LC_WATCH_STALE
or #LC_WATCH_ERROR. Watchpoints can not be individually disabled. The only ways to keep
Watchpoints from being evaluated are to squelch the telemetry packet on which they trigger,
load a WDT that undefines a Watchpoint or disable the entire LC task.
Expand All @@ -187,7 +157,7 @@
ID. This message contains a parameter indicating which actionpoint to evaluate. A single actionpoint can be specified by using the actionpoint ID (0 to #LC_MAX_ACTIONPOINTS). All actionpoints can be evaluated by specifying xFFFF as the parameter. There is no way to evaluate multiple actionpoints other than ALL within a single message. An Actionpoint defines a logical relationship between one or more Watchpoint results.
This logical relationship is defined in the form of a Reverse Polish Notation (RPN)
expression in the actionpoint definition specified in the ADT. The result of this RPN
evaluation is either #LC_ACTION_PASS, #LC_ACTION_FAIL, #LC_ACTION_NOT_MEASURED or
evaluation is either #LC_ACTION_PASS, #LC_ACTION_FAIL, #LC_ACTION_STALE or
#LC_ACTION_ERROR. In the Actionpoint definition, a maximum number of consecutive fails is
specified. If an Actionpoint fails the specified number of times consecutively, LC sends a
request to the Stored Command (SC) application to execute a RTS (Relative Time Sequence) of
Expand Down Expand Up @@ -432,7 +402,7 @@
<TABLE BORDER="0">
<TR><TD WIDTH="15%"><B>WatchResult</B></TD><TD WIDTH="50%"> Result for the last evaluation of this watchpoint. Enumerated type that
will be one of the following:</TD></TR>
<TR><TD></TD><TD> #LC_WATCH_TRUE, #LC_WATCH_FALSE, #LC_WATCH_NOT_MEASURED, #LC_WATCH_ERROR</TD></TR>
<TR><TD></TD><TD> #LC_WATCH_TRUE, #LC_WATCH_FALSE, #LC_WATCH_STALE, #LC_WATCH_ERROR</TD></TR>

<TR><TD><B>EvaluationCount</B></TD><TD> How many times this watchpoint has been evaluated</TD></TR>

Expand All @@ -446,7 +416,7 @@
#LC_WATCH_TRUE</TD></TR>

<TR><TD><B>LastFalseToTrue</B></TD><TD> Watchpoint value and timestamp at the last transition from
#LC_WATCH_FALSE (or #LC_WATCH_NOT_MEASURED) to #LC_WATCH_TRUE</TD></TR>
#LC_WATCH_FALSE (or #LC_WATCH_STALE) to #LC_WATCH_TRUE</TD></TR>

<TR><TD><B>LastTrueToFalse</B></TD><TD> Watchpoint value and timestamp at the last transition from
#LC_WATCH_TRUE to #LC_WATCH_FALSE</TD></TR>
Expand All @@ -469,7 +439,7 @@
<TABLE BORDER="0">
<TR><TD><B>ActionResult</B></TD><TD> Result for the last sample of this actionpoint. Enumerated type that
will be one of the following:</TD></TR>
<TR><TD></TD><TD> #LC_ACTION_PASS, #LC_ACTION_FAIL, #LC_ACTION_NOT_MEASURED,
<TR><TD></TD><TD> #LC_ACTION_PASS, #LC_ACTION_FAIL, #LC_ACTION_STALE,
#LC_ACTION_ERROR</TD></TR>

<TR><TD><B>CurrentState</B></TD><TD> Current state of this actionpoint. Enumerated type that
Expand Down Expand Up @@ -508,10 +478,12 @@

When either the WDT or ADT are updated, the corresponding results table (WRT or ART) is
reset to initialization values. For each entry in the WRT, WatchResult is set to
#LC_WATCH_NOT_MEASURED and all other values are zeroed. For each entry in the ART,
ActionResult is set to #LC_ACTION_NOT_MEASURED, the CurrentState is set to the
#LC_WATCH_STALE and all other values are zeroed. For each entry in the ART,
ActionResult is set to #LC_ACTION_STALE, the CurrentState is set to the
value of the actionpoint's DefaultState specified in the ADT, and all other values are
zeroed.
zeroed. When preparing to update the WDT or WDT, the LC state should be set
to inactive prior to the update and then set to active after the update is
completed.

These are also the values used (for the entries specified in the command) when the
#LC_RESET_AP_STATS_CC or #LC_RESET_WP_STATS_CC ground command is received.
Expand Down Expand Up @@ -644,9 +616,9 @@
</I>

<B> (Q)
When would a watchpoint evalute to #LC_WATCH_NOT_MEASURED?
When would a watchpoint evalute to #LC_WATCH_STALE?
</B> <BR> <BR> <I>
#LC_WATCH_NOT_MEASURED is an initialization value for the Watchpoint
#LC_WATCH_STALE is an initialization value for the Watchpoint
Results Table. If a watchpoint has this WatchResult then the watchpoint
is unused (the DataType in the WDT is set to #LC_WATCH_NOT_USED) or a
message that contains the watchpoint has not yet been recieved by LC and
Expand Down Expand Up @@ -736,9 +708,9 @@
</I>

<B> (Q)
When would a actionpoint evalute to #LC_ACTION_NOT_MEASURED?
When would a actionpoint evalute to #LC_ACTION_STALE?
</B> <BR> <BR> <I>
#LC_ACTION_NOT_MEASURED is an initialization value for the Actionpoint
#LC_ACTION_STALE is an initialization value for the Actionpoint
Results Table. If an actionpoint has this ActionResult then one of
three possible conditions are true:

Expand All @@ -749,7 +721,7 @@
yet been recieved by LC so the AP has not yet been evaluated.

3) One or more of the watchpoints that this AP depends on (as defined by
the RPN expression) has a current WatchResult of #LC_WATCH_NOT_MEASURED
the RPN expression) has a current WatchResult of #LC_WATCH_STALE
so the AP can't be evaluated.
</I>

Expand Down Expand Up @@ -873,8 +845,8 @@
</B> <BR> <BR> <I>
When either the WDT or ADT are updated, the corresponding results table (WRT or ART) is
reset to initialization values. For each entry in the WRT, WatchResult is set to
#LC_WATCH_NOT_MEASURED and all other values are zeroed. For each entry in the ART,
ActionResult is set to #LC_ACTION_NOT_MEASURED, the CurrentState is set to the
#LC_WATCH_STALE and all other values are zeroed. For each entry in the ART,
ActionResult is set to #LC_ACTION_STALE, the CurrentState is set to the
value of the actionpoint's DefaultState specified in the ADT, and all other values are
zeroed.

Expand Down
49 changes: 22 additions & 27 deletions fsw/mission_inc/lc_mission_cfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,67 +2,62 @@
** File:
** $Id: lc_mission_cfg.h 1.3 2017/01/22 17:24:26EST sstrege Exp $
**
** Copyright (c) 2007-2020 United States Government as represented by the
** Administrator of the National Aeronautics and Space Administration.
** All Other Rights Reserved.
** Copyright (c) 2007-2020 United States Government as represented by the
** Administrator of the National Aeronautics and Space Administration.
** All Other Rights Reserved.
**
** This software was created at NASA's Goddard Space Flight Center.
** This software is governed by the NASA Open Source Agreement and may be
** used, distributed and modified only pursuant to the terms of that
** This software is governed by the NASA Open Source Agreement and may be
** used, distributed and modified only pursuant to the terms of that
** agreement.
**
** Purpose:
** Purpose:
** CFS Limit Checker (LC) Application Mission Configuration Header File
**
** Notes:
**
**
**
*************************************************************************/
#ifndef _lc_mission_cfg_
#define _lc_mission_cfg_

/** \lccfg RTS Request Message ID
**
**
** \par Description:
** Message ID that will be used by the /LC_ExecuteRTS function
** to construct the RTS request message.
**
** We define this here to allow the LC application to be built
**
** We define this here to allow the LC application to be built
** without including headers from the application (e.g. SC) that
** will receive the command. Obviously, this definition must
** match the message ID expectyed by the receiving application.
**
** A mission may choose to modify the /LC_ExecuteRTS function not
** to use this or define it using a message ID constant that is
**
** A mission may choose to modify the /LC_ExecuteRTS function not
** to use this or define it using a message ID constant that is
** defined numerically elsewhere.
**
** \par Limits:
** This parameter shouldn't be larger than the value set for
** #CFE_SB_HIGHEST_VALID_MSGID.
** This parameter shouldn't be larger than the value set for
** #CFE_PLATFORM_SB_HIGHEST_VALID_MSGID.
*/
#define LC_RTS_REQ_MID 0x18A9
#define LC_RTS_REQ_MID 0x18A9

/** \lccfg RTS Request Command Code
**
**
** \par Description:
** Command code that will be used by the /LC_ExecuteRTS function
** to construct the RTS request message.
**
** We define this here to allow the LC application to be built
**
** We define this here to allow the LC application to be built
** without including headers from the application (e.g. SC) that
** will receive the command. Obviously, this definition must
** match the command code expected by the receiving application.
**
** \par Limits:
** This parameter can't be larger than an unsigned 16 bit
** integer (65535). Of course we all know that the preceding
** limit describes the size of the variable returned by the
** API function #CFE_SB_GetCmdCode. And that for as long as CFE
** uses the existing CCSDS packet format implementation, command
** codes are only 7 bits (unsigned) with an upper limit of 127
** and a lower limit of zero.
** This parameter can't be larger than 127 (the maximum value of
** 7-bit number).
*/
#define LC_RTS_REQ_CC 4
#define LC_RTS_REQ_CC 4

#endif /*_lc_mission_cfg_*/

Expand Down
20 changes: 10 additions & 10 deletions fsw/mission_inc/lc_perfids.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
** File:
** $Id: lc_perfids.h 1.3 2017/01/22 17:24:45EST sstrege Exp $
**
** Copyright (c) 2007-2020 United States Government as represented by the
** Administrator of the National Aeronautics and Space Administration.
** All Other Rights Reserved.
** Copyright (c) 2007-2020 United States Government as represented by the
** Administrator of the National Aeronautics and Space Administration.
** All Other Rights Reserved.
**
** This software was created at NASA's Goddard Space Flight Center.
** This software is governed by the NASA Open Source Agreement and may be
** used, distributed and modified only pursuant to the terms of that
** This software is governed by the NASA Open Source Agreement and may be
** used, distributed and modified only pursuant to the terms of that
** agreement.
**
** Purpose:
** Purpose:
** CFS Limit Checker (LC) Application Performance IDs
**
** Notes:
**
**
**
*************************************************************************/
#ifndef _lc_perfids_
#define _lc_perfids_
Expand All @@ -25,10 +25,10 @@
** Macro Definitions
*************************************************************************/
/**
** \name CFS LC Application Performance IDs */
** \name CFS LC Application Performance IDs */
/** \{ */
#define LC_APPMAIN_PERF_ID 28
#define LC_WDT_SEARCH_PERF_ID 43
#define LC_APPMAIN_PERF_ID 28
#define LC_WDT_SEARCH_PERF_ID 43
/** \} */

#endif /*_lc_perfids_*/
Expand Down
Loading

0 comments on commit 6d68cf8

Please sign in to comment.