WarpTwin
Documentation for WarpTwin models and classes.
Loading...
Searching...
No Matches
tlm_PdAttitudeControl.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/*
17PD Attitude Control telemetry definition header file
18
19Author: Alex Reynolds
20*/
21
22#ifndef TELEMETRY_TLM_PD_ATTITUDE_CONTROL_H
23#define TELEMETRY_TLM_PD_ATTITUDE_CONTROL_H
24
25#include "flight/Telemetry.h"
26#include "apps/app_apids.h"
27
28// Define the telemetry base for the PD attitude control
29#define TLM_GNC_PD_ATT_CTRL_BASE APP_APID_GNC_PD_ATT_CTRL + TLM_APID_BASE
30
31// -------------------------------------------------------------------------------------
32// PD CONTROL TELEMETRY APID DEFINITIONS
33// -------------------------------------------------------------------------------------
35#define TLM_GNC_PD_ATT_CTRL_DATA TLM_GNC_PD_ATT_CTRL_BASE + 0x000
36#define TLM_GNC_PD_ATT_CTRL_DATA_SIZE 22
37
42 ((float16), att_err_rad), // Angular magnitude of the difference between
43 // command and current attitude
44 ((std::array<float16, 4>), err_quat), // Error quaternion actual/command
45 ((std::array<float16, 3>), err_ang_vel), // Difference between actual and commanded angular velocity
46 ((std::array<float16, 3>), cmd_torque) // Command torque output of the app
47)
48
49#endif
Header for generic telemetry packet struct generation and serialization.
#define TELEMETRY(NAME, APID, SIZE,...)
Definition Telemetry.h:297
PD Control packet definition.
Definition tlm_PdAttitudeControl.h:42
float16 att_err_rad
Definition tlm_PdAttitudeControl.h:42
std::array< float16, 3 > cmd_torque
Definition tlm_PdAttitudeControl.h:42
std::array< float16, 3 > err_ang_vel
Definition tlm_PdAttitudeControl.h:42
std::array< float16, 4 > err_quat
Definition tlm_PdAttitudeControl.h:42
#define TLM_GNC_PD_ATT_CTRL_DATA_SIZE
Definition tlm_PdAttitudeControl.h:36
#define TLM_GNC_PD_ATT_CTRL_DATA
Telemetry code for the example blinker count.
Definition tlm_PdAttitudeControl.h:35