paqueteCnC
Loading...
Searching...
No Matches
Classes
packet_extended_housekeeping_2.h File Reference

Higher level packet for housekeeping and diagnostic data service. Packet of subtype 2 and 1: Define new diagnostic parameter report. More...

#include <vector>
#include <unordered_map>
#include "../packet.h"
#include "packet_extended_basic.h"
#include "packet_extended_housekeeping_basic.h"

Go to the source code of this file.

Classes

class  PacketExtendedHousekeeping2
 

Detailed Description

Higher level packet for housekeeping and diagnostic data service. Packet of subtype 2 and 1: Define new diagnostic parameter report.

Author
Marcos Barrios

A diagnostic parameter report consists of a collection interval, an amount of parameters to sample, the sequence of parameter ID to be sampled for this SID according to the previous amount, an amount of fixed-length arrays, the sequence of arrays. The parameter Identifiers are defined at ground station.

The collection interval defines how many <DIAG_MIN_INTERV> to wait before sampling again, which is the time it takes to sample a parameter. So if I understood it properly, if it is 1 then the parameter will me continuously sampled. It can be sistematically skipped but I decided it is better to keep it around as I am not sure whether we will actually need it or not.

The fixed-length arrays have the amount of samples per parameter and the amount of parameters, so it will contain a sequence of samples per parameter. By using the amount of samples per parameter one can know which sample belongs to what parameter.