WarpTwin
Documentation for WarpTwin models and classes.
Loading...
Searching...
No Matches
tlm_CommandManager.h
Go to the documentation of this file.
1/******************************************************************************
2* Copyright (c) ATTX INC 2025. All Rights Reserved.
3*
4* This software and associated documentation (the "Software") are the
5* proprietary and confidential information of ATTX, INC. The Software is
6* furnished under a license agreement between ATTX and the user organization
7* and may be used or copied only in accordance with the terms of the agreement.
8* Refer to 'license/attx_license.adoc' for standard license terms.
9*
10* EXPORT CONTROL NOTICE: THIS SOFTWARE MAY INCLUDE CONTENT CONTROLLED UNDER THE
11* INTERNATIONAL TRAFFIC IN ARMS REGULATIONS (ITAR) OR THE EXPORT ADMINISTRATION
12* REGULATIONS (EAR99). No part of the Software may be used, reproduced, or
13* transmitted in any form or by any means, for any purpose, without the express
14* written permission of ATTX, INC.
15******************************************************************************/
16/*
17Command Manager telemetry definition header file
18
19Author: Will Burken
20*/
21
22#ifndef TELEMETRY_TLM_COMMAND_MANAGER_H
23#define TELEMETRY_TLM_COMMAND_MANAGER_H
24
25#include "flight/Telemetry.h"
26#include "apps/app_apids.h"
27
28// Define the telemetry base for the Command Manager
29#define TLM_CMD_MNGR_BASE APP_APID_COMMAND_MANAGER + TLM_APID_BASE
30
31// -------------------------------------------------------------------------------------
32// COMMAND MANAGER TELEMETRY APID DEFINITIONS
33// -------------------------------------------------------------------------------------
35#define TLM_CMD_MNGR_STATUS TLM_CMD_MNGR_BASE + 0x000
36
38#define TLM_CMD_MNGR_ERROR TLM_CMD_MNGR_BASE + 0x001
39
44 ((uint16), exc_error_count), // Rolling count of dropped packets
45 ((uint16), pkt_not_registered_count), // Rolling count of successfully sent packets
46 ((uint16), crc_error_count), // Rolling count of dropped packets
47 ((uint16), timeout_count), // Rolling count of successfully sent packets
48 ((uint16), successful_cmd_count) // Rolling count of dropped packets
49)
50
51
55 ((int16), error_code), // Error code returned from command manager
56 ((uint16), cmd_apid) // Command APID that caused the error
58
59#endif
Header for generic telemetry packet struct generation and serialization.
#define TELEMETRY(NAME, APID, SIZE,...)
Definition Telemetry.h:297
Command Manager error packet definition.
Definition tlm_CommandManager.h:54
int16 error_code
Definition tlm_CommandManager.h:54
uint16 cmd_apid
Definition tlm_CommandManager.h:54
Command Manager status packet definition.
Definition tlm_CommandManager.h:44
uint16 timeout_count
Definition tlm_CommandManager.h:44
uint16 crc_error_count
Definition tlm_CommandManager.h:44
uint16 successful_cmd_count
Definition tlm_CommandManager.h:44
uint16 exc_error_count
Definition tlm_CommandManager.h:44
uint16 pkt_not_registered_count
Definition tlm_CommandManager.h:44
#define TLM_CMD_MNGR_ERROR
telemetry code for the Command manager error return
Definition tlm_CommandManager.h:38
#define TLM_CMD_MNGR_STATUS
telemetry code for the Command manager status
Definition tlm_CommandManager.h:35