pdu2 dataset update snapshot

This commit is contained in:
2021-02-06 11:57:45 +01:00
parent 00cabbb8e9
commit c3665cbd65
18 changed files with 312 additions and 149 deletions

View File

@ -61,7 +61,12 @@ private:
*/
PDU2::PDU2HkTableDataset pdu2HkTableDataset;
/** The timeStamp of the current pdu2HkTableDataset */
CCSDSTime::CDS_short timeStamp;
CCSDSTime::CDS_short timeStampPdu2HkDataset;
/** Hk table dataset of PDU1 */
// PDU1::PDU1HkTableDataset pdu1HkTableDataset;
// /** The timeStamp of the current pdu1HkTableDataset */
// CCSDSTime::CDS_short timeStampPdu1HkDataset;
uint8_t switchStates[pcduSwitches::NUMBER_OF_SWITCHES];
/**
@ -94,6 +99,12 @@ private:
*/
void updatePdu2SwitchStates();
/**
* @brief In case of an update snapshot message with a pdu2 hk table dataset, this function
* copies the updated values to the local pdu2HkTableDataset.
*/
void updatePdu2HousekeepingDataset(store_address_t storeId);
/**
* @brief Updates all switchStates related to the PDU1. Called each time the PDU1Handler
* sends a new hk dataset.