Skip to content

Commit

Permalink
Data Product Catalog prototype (#2667)
Browse files Browse the repository at this point in the history
* Starting on FDD for DpCatalog

* More DpCatalog SDD edits

* More refined DpCatalog requirements

* Starting prototype code

* Working on DpCatalog build command

* More DpCatalog work

* More DpCatalog work

* More work on reading DP headers

* More work...

* Continued work

* Spelling fixes

* More spelling fixes

* First run of init unit test

* One DP works

* Refactor unit test helpers

* Working on multiple DPs

* More work on multiple DPs

* Fixed filesRead bug

* More merge fixes

* Adding DPs to SignalGen

* Adding DP components

* Added DP directory to DpWriter

* First working version of Data Products!

* Added missing FileDownlink connection

* Added early proto warning to SDD.

* Switched to Fw::FileNameString

* Fixed unit test compile

* Add missing override keyword

* Fix unit test override

* Fixed format specifiers

* Reformat code

* Revise DpWriter uts

* Revise dp writer

* Revise dp writer

* Removed extra ;

* Fix markdown broken links

* Updated SDD to force CI to run again

---------

Co-authored-by: Robert L. Bocchino Jr <[email protected]>
  • Loading branch information
timcanham and bocchino authored Apr 25, 2024
1 parent 88d65d7 commit 4557066
Show file tree
Hide file tree
Showing 33 changed files with 2,097 additions and 194 deletions.
7 changes: 7 additions & 0 deletions .github/actions/spelling/expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,11 @@ doxysearch
Doxywizard
DPCFG
dpi
DPCAT
DPCATALOG
DPMANAGER
DPWRITER
dps
DRAINBUFFERS
drv
dsdl
Expand Down Expand Up @@ -399,6 +402,7 @@ getinput
getm
getpid
getquaternion
gett
gettime
gettimeofday
getty
Expand Down Expand Up @@ -430,6 +434,7 @@ handcoded
hardtoaccess
hashvalue
HEADERSIZE
hdr
headlessly
heapifying
hexid
Expand Down Expand Up @@ -860,6 +865,7 @@ relaxng
REMOVEDIRECTORY
REMOVEFILE
reparse
reprioritize
reserializing
resname
resultlist
Expand Down Expand Up @@ -912,6 +918,7 @@ serializables
setaffinity
setdata
SETFL
setid
setinheritsched
SETLOGGING
setm
Expand Down
3 changes: 3 additions & 0 deletions Fw/Dp/DpContainer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ class DpContainer {
//! \return The time tag
Fw::Time getTimeTag() const { return this->m_timeTag; }

//! Get the product state
Fw::DpState getState() const { return this->m_dpState; }

//! Get the processing types
//! \return The processing types
DpCfg::ProcType::SerialType getProcTypes() const { return this->m_procTypes; }
Expand Down
6 changes: 6 additions & 0 deletions Fw/Types/Types.fpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,10 @@ module Fw {
FAILURE @< Representing failure
SUCCESS @< Representing success
}
@ Wait or don't wait for something
enum Wait {
WAIT,
NO_WAIT
}
}
1 change: 1 addition & 0 deletions Ref/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ commands/
channels/
events/
dict/
DpCat

7 changes: 7 additions & 0 deletions Ref/SignalGen/Commands.fppi
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,10 @@ async command SignalGen_Toggle \
@ Skip next sample
async command SignalGen_Skip \
opcode 2

@ Signal Generator Settings
async command SignalGen_Dp(
records: U32
) \
opcode 3

28 changes: 28 additions & 0 deletions Ref/SignalGen/Events.fppi
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,31 @@ event SignalGen_SettingsChanged(
severity activity low \
id 0 \
format "Set Frequency(Hz) {}, Amplitude {f}, Phase {f}, Signal Type {}"

event SignalGen_DpStarted(
records: U32
) \
severity activity low \
id 1 \
format "Writing {} DP records"

event SignalGen_DpComplete(
records: U32
bytes: U32
) \
severity activity low \
id 2 \
format "Writing {} DP records {} bytes total"

event SignalGen_DpRecordFull(
records: U32
bytes: U32
) \
severity warning low \
id 3 \
format "DP container full with {} records and {} bytes. Closing DP."

event SignalGen_DpsNotConnected \
severity warning high \
id 4 \
format "DP Ports not connected!"
Loading

0 comments on commit 4557066

Please sign in to comment.