ModelSpace
Documentation for ModelSpace models and classes.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ImpulseModel.h
Go to the documentation of this file.
1 /******************************************************************************
2 * Copyright (c) ATTX LLC 2024. All Rights Reserved.
3 *
4 * This software and associated documentation (the "Software") are the
5 * proprietary and confidential information of ATTX, LLC. 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, LLC.
15 ******************************************************************************/
16 /*
17 Impulse model header file
18 
19 Author: Alex Reynolds
20 */
21 /*
22 Metadata for MS GUI:
23 imdata = {"exclude" : True}
24 */
25 
26 #ifndef MODELS_ACTUATORS_MODELS_IMPULSE_MODEL_H
27 #define MODELS_ACTUATORS_MODELS_IMPULSE_MODEL_H
28 
29 #include "simulation/Model.h"
30 #include "core/CartesianVector.hpp"
31 
32 namespace modelspace {
33 
42  MODEL(ImpulseModel)
43  public:
46 
47  // Model inputs
48  // NAME TYPE DEFAULT VALUE
51  SIGNAL(trigger, int, false)
53  SIGNAL(impulse__f, CartesianVector3, CartesianVector3({0.0, 0.0, 0.0}))
55 
56  // Model outputs
57  // NAME TYPE DEFAULT VALUE
60  SIGNAL(force__f, CartesianVector3, CartesianVector3({0.0, 0.0, 0.0}))
62 
63  protected:
64  int16 execute() override;
65  };
66 }
67 
68 #endif
#define START_PARAMS
Definition: appmacros.h:42
#define END_OUTPUTS
Definition: appmacros.h:33
#define END_PARAMS
Definition: appmacros.h:47
#define START_OUTPUTS
Definition: appmacros.h:28
#define END_INPUTS
Definition: appmacros.h:40
#define START_INPUTS
Definition: appmacros.h:35
#define CartesianVector3
Definition: mathmacros.h:42
Class to propagate CR3BP dynamics in characteristic units.
Definition: statistics.hpp:22
SIGNAL(_mu, double, cfspp::earth_wgs84.mu)
@ MODEL
Simplified dynamics model representing motion in the circular restricted 3 body problem.
Definition: ImNode.h:31
int16 execute() override
Function to check monitor input conditions and set trigger flag accordingly. Should be implemented in...