Skip to content

Commit

Permalink
Merge pull request #160 from jphickey/fix-159-eds
Browse files Browse the repository at this point in the history
Fix #159, initial inclusion of EDS file
  • Loading branch information
dmknutsen authored Dec 15, 2023
2 parents e13cec6 + 3c9a56c commit ff9e791
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
61 changes: 61 additions & 0 deletions eds/sch_lab.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
GSC-18128-1, "Core Flight Executive Version 6.7"
LEW-19710-1, "CCSDS electronic data sheet implementation"
Copyright (c) 2006-2019 United States Government as represented by
the Administrator of the National Aeronautics and Space Administration.
All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
This document adheres to the Electronic Data Sheet (EDS) XML schema
as prescribed in CCSDS book 876.0.
Purpose:
This describes all interface objects for the Executive Services (CFE_ES)
core application
-->
<PackageFile xmlns="http://www.ccsds.org/schema/sois/seds">
<Package name="SCH_LAB" shortDescription="Command Ingest">
<DataTypeSet>
<ArrayDataType name="ScheduleArgs" dataTypeRef="BASE_TYPES/uint16" shortDescription="Schedule entry arguments">
<DimensionList>
<Dimension size="${SCH_LAB/MAX_ARGS_PER_ENTRY}" />
</DimensionList>
</ArrayDataType>
<ContainerDataType name="ScheduleTableEntry" shortDescription="SCH_LAB Schedule Table Entry">
<EntryList>
<Entry name="MessageID" type="CFE_SB/MsgId" shortDescription="Message ID for the table entry" />
<Entry name="PacketRate" type="BASE_TYPES/uint32" shortDescription="Send packet every N ticks" />
<Entry name="FcnCode" type="CFE_HDR/FunctionCode" shortDescription="Command/Function code to set" />
<Entry name="PayloadLength" type="BASE_TYPES/uint16" shortDescription="Length of additional command args" />
<Entry name="MessageBuffer" type="ScheduleArgs" shortDescription="Additional command args" />
</EntryList>
</ContainerDataType>
<ArrayDataType name="ScheduleTableEntries" dataTypeRef="ScheduleTableEntry" shortDescription="SCH_LAB Schedule Table">
<DimensionList>
<Dimension size="${SCH_LAB/MAX_SCHEDULE_ENTRIES}" />
</DimensionList>
</ArrayDataType>
<ContainerDataType name="ScheduleTable" shortDescription="SCH_LAB Schedule Table">
<EntryList>
<Entry name="TickRate" type="BASE_TYPES/uint32" shortDescription="Ticks per second to configure for timer (0=default)" />
<Entry name="Config" type="ScheduleTableEntries" />
</EntryList>
</ContainerDataType>
</DataTypeSet>
</Package>
</PackageFile>
9 changes: 9 additions & 0 deletions mission_build.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ set(SCH_LAB_MISSION_CONFIG_FILE_LIST
sch_lab_tblstruct.h
)

if (CFE_EDS_ENABLED_BUILD)

# In an EDS-based build, these files come generated from the EDS tool
set(SCH_LAB_CFGFILE_SRC_sch_lab_interface_cfg "sch_lab_eds_designparameters.h")
set(SCH_LAB_CFGFILE_SRC_sch_lab_tbldefs "sch_lab_eds_typedefs.h")
set(SCH_LAB_CFGFILE_SRC_sch_lab_tblstruct "sch_lab_eds_typedefs.h")

endif(CFE_EDS_ENABLED_BUILD)

# Create wrappers around the all the config header files
# This makes them individually overridable by the missions, without modifying
# the distribution default copies
Expand Down

0 comments on commit ff9e791

Please sign in to comment.