WarpTwin
Documentation for WarpTwin models and classes.
Loading...
Searching...
No Matches
cmd_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 command definition header file
18
19Author: Alex Reynolds
20*/
21
22#ifndef COMMAND_CMD_PD_ATTITUDE_CONTROL_H
23#define COMMAND_CMD_PD_ATTITUDE_CONTROL_H
24
25#include "flight/Command.h"
26
27// Define the command base for the LED blinker
28#define CMD_GNC_PD_ATT_CTRL_BASE APP_APID_GNC_PD_ATT_CTRL + CMD_APID_BASE
29
30// -------------------------------------------------------------------------------------
31// PD ATTITUDE CONTROL COMMAND APID DEFINITIONS
32// -------------------------------------------------------------------------------------
34#define CMD_GNC_PD_ATT_CTRL_CHANGE_GAIN CMD_GNC_PD_ATT_CTRL_BASE + 0x000
35#define CMD_GNC_PD_ATT_CTRL_CHANGE_GAIN_SIZE 8
36
38#define CMD_GNC_PD_ATT_CTRL_SET_DEADBAND CMD_GNC_PD_ATT_CTRL_BASE + 0x001
39#define CMD_GNC_PD_ATT_CTRL_SET_DEADBAND_SIZE 4
40
48 ((float), P), // The proportional gain for the controller
49 ((float), K) // The derivative gain for the controller
52
58 ((float), att_deadband_rad) // The deadband, in radians, for the PD attitude controller
59)
61#endif
#define COMMAND(NAME, APID, SIZE,...)
Definition Command.h:33
#define CMD_GNC_PD_ATT_CTRL_CHANGE_GAIN
Command code to change the PD attitude control gains.
Definition cmd_PdAttitudeControl.h:34
#define CMD_GNC_PD_ATT_CTRL_CHANGE_GAIN_SIZE
Definition cmd_PdAttitudeControl.h:35
#define CMD_GNC_PD_ATT_CTRL_SET_DEADBAND_SIZE
Definition cmd_PdAttitudeControl.h:39
#define CMD_GNC_PD_ATT_CTRL_SET_DEADBAND
Command code to change the PD attitude control gains.
Definition cmd_PdAttitudeControl.h:38
Definition cmd_PdAttitudeControl.h:60
Definition cmd_PdAttitudeControl.h:48
float K
Definition cmd_PdAttitudeControl.h:48
float P
Definition cmd_PdAttitudeControl.h:48