mirror of
https://github.com/nasa/fprime.git
synced 2025-12-10 00:44:37 -06:00
* manual packet gen * Added tlmPkt to deployment * Packet files * Fixes to packet gen script * format python, updated packet files * spelling fixes * integrating packet autocoder * final updates for telemetry packetization * formatting telemetry packetizer cpde * moving tlm packetizer configuration file * resetting stock telemetry channelizer * missed packetizer setup call * fixing autocoding miss-match with Svc::TlmChan Co-authored-by: M Starch <LeStarch@googlemail.com>
44 lines
1.7 KiB
C++
44 lines
1.7 KiB
C++
/*
|
|
* TlmPacketizerComponentImplCfg.hpp
|
|
*
|
|
* Created on: Dec 10, 2017
|
|
* Author: tim
|
|
*/
|
|
|
|
// \copyright
|
|
// Copyright 2009-2015, by the California Institute of Technology.
|
|
// ALL RIGHTS RESERVED. United States Government Sponsorship
|
|
// acknowledged.
|
|
|
|
#ifndef SVC_TLMPACKETIZER_TLMPACKETIZERCOMPONENTIMPLCFG_HPP_
|
|
#define SVC_TLMPACKETIZER_TLMPACKETIZERCOMPONENTIMPLCFG_HPP_
|
|
|
|
#include <FpConfig.hpp>
|
|
|
|
namespace Svc {
|
|
static const NATIVE_UINT_TYPE MAX_PACKETIZER_PACKETS = 200;
|
|
static const NATIVE_UINT_TYPE TLMPACKETIZER_NUM_TLM_HASH_SLOTS =
|
|
15; // !< Number of slots in the hash table.
|
|
// Works best when set to about twice the number of components producing telemetry
|
|
static const NATIVE_UINT_TYPE TLMPACKETIZER_HASH_MOD_VALUE =
|
|
99; // !< The modulo value of the hashing function.
|
|
// Should be set to a little below the ID gaps to spread the entries around
|
|
|
|
static const NATIVE_UINT_TYPE TLMPACKETIZER_HASH_BUCKETS =
|
|
1000; // !< Buckets assignable to a hash slot.
|
|
// Buckets must be >= number of telemetry channels in system
|
|
static const NATIVE_UINT_TYPE TLMPACKETIZER_MAX_MISSING_TLM_CHECK =
|
|
25; // !< Maximum number of missing telemetry channel checks
|
|
|
|
// packet update mode
|
|
enum PacketUpdateMode {
|
|
PACKET_UPDATE_ALWAYS, // Always send packets, even if no changes to channel data
|
|
PACKET_UPDATE_ON_CHANGE, // Only send packets if any of the channels updates
|
|
PACKET_UPDATE_AFTER_FIRST_CHANGE, // Always send packets, but only after first channel has been updated
|
|
};
|
|
|
|
static const PacketUpdateMode PACKET_UPDATE_MODE = PACKET_UPDATE_ON_CHANGE;
|
|
} // namespace Svc
|
|
|
|
#endif /* SVC_TLMPACKETIZER_TLMPACKETIZERCOMPONENTIMPLCFG_HPP_ */
|