WarpTwin
Documentation for WarpTwin models and classes.
Loading...
Searching...
No Matches
tlm_Executive.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/*
17Executive telemetry definition header file
18
19Author: Alex Reynolds
20*/
21
22#ifndef TELEMETRY_TLM_EXECUTIVE_H
23#define TELEMETRY_TLM_EXECUTIVE_H
24
25#include "flight/Telemetry.h"
26#include "apps/app_apids.h"
27
28// Define the telemetry base for the Executive
29#define TLM_EXECUTIVE_BASE APP_APID_EXECUTIVE + TLM_APID_BASE
30
31// -------------------------------------------------------------------------------------
32// EXECUTIVE TELEMETRY APID DEFINITIONS
33// -------------------------------------------------------------------------------------
35#define TLM_EXECUTIVE_APP_ERROR TLM_EXECUTIVE_BASE + 0x0000
36
38#define TLM_EXECUTIVE_SCHEDULE_OVERRUN TLM_EXECUTIVE_BASE + 0x0001
39
49 ((uint16), app_apid), // The app returning error
50 ((int16), error_code), // The error code returned by the app
51 ((int16), schedule_slot), // The schedule slot where the error occurred -- negative values represent startup
52 ((uint8), error_count) // The total number of error returns in the code -- rolls over at 255
53)
54
55
64 ((uint16), app_apid), // The app which overran
65 ((int16), schedule_slot), // The schedule slot the app was scheduled for
66 ((int16), terminating_slot), // The schedule slot where the app actually returned
67 ((uint8), overrun_count) // The total number of overruns in the code -- rolls over at 255
68)
69
70#endif
Header for generic telemetry packet struct generation and serialization.
#define TELEMETRY(NAME, APID, SIZE,...)
Definition Telemetry.h:297
Packet for app errors.
Definition tlm_Executive.h:49
uint8 error_count
Definition tlm_Executive.h:49
int16 schedule_slot
Definition tlm_Executive.h:49
int16 error_code
Definition tlm_Executive.h:49
uint16 app_apid
Definition tlm_Executive.h:49
Packet for schedule overrun.
Definition tlm_Executive.h:64
uint16 app_apid
Definition tlm_Executive.h:64
int16 terminating_slot
Definition tlm_Executive.h:64
uint8 overrun_count
Definition tlm_Executive.h:64
int16 schedule_slot
Definition tlm_Executive.h:64
#define TLM_EXECUTIVE_SCHEDULE_OVERRUN
Telemetry code for the Executive to catch and telemeter schedule overruns.
Definition tlm_Executive.h:38
#define TLM_EXECUTIVE_APP_ERROR
Telemetry code for the Executive to catch and telemeter error when app returns error.
Definition tlm_Executive.h:35