WarpTwin
Documentation for WarpTwin models and classes.
Loading...
Searching...
No Matches
cmd_TelemetryManager.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/*
17Telemetry Manager command definition header file
18
19Author: Will Burken
20*/
21
22#ifndef COMMAND_CMD_TLM_MANAGER_H
23#define COMMAND_CMD_TLM_MANAGER_H
24
25#include "flight/Command.h"
26#include "apps/app_apids.h"
27
28// Define the command base for the Telemetry Manager
29#define CMD_TLM_MANAGER_BASE APP_APID_TELEMETRY_MANAGER + CMD_APID_BASE
30
31
32// -------------------------------------------------------------------------------------
33// TELEMETRY MANAGER COMMAND APID DEFINITIONS
34// -------------------------------------------------------------------------------------
36#define CMD_APID_CHANGE_TLM_RATE CMD_TLM_MANAGER_BASE + 0x000
38#define CMD_CLEAR_QUEUE CMD_TLM_MANAGER_BASE + 0x001
40#define CMD_MAX_BYTES_PER_STEP CMD_TLM_MANAGER_BASE + 0x002
41
49 ((uint32), rate_s), // The updated rate for the telemetry (seconds)
50 ((uint32), rate_ns), // The updated rate for the telemetry (nanoseconds)
51 ((uint16), target_apid), // The APID of the telemetry to change
52 ((uint8), instance) // Instance of the telemetry to change
54)
55
56
62 ((bool), clear) // Boolean to clear the queue
78 ((uint16), bytes) // The amount of bytes to allow per step
79)
80
81#endif
#define COMMAND(NAME, APID, SIZE,...)
Definition Command.h:33
#define CMD_CLEAR_QUEUE
Command code to clear the telemetry queues.
Definition cmd_TelemetryManager.h:38
#define CMD_MAX_BYTES_PER_STEP
Command code to set the max bytes per step.
Definition cmd_TelemetryManager.h:40
#define CMD_APID_CHANGE_TLM_RATE
Command code to change a specified APID telemetry rate.
Definition cmd_TelemetryManager.h:36
Definition cmd_TelemetryManager.h:50
uint32 rate_ns
Definition cmd_TelemetryManager.h:50
uint8 instance
Definition cmd_TelemetryManager.h:50
uint16 target_apid
Definition cmd_TelemetryManager.h:50
Definition cmd_TelemetryManager.h:62
bool clear
Definition cmd_TelemetryManager.h:62
Definition cmd_TelemetryManager.h:81