WarpTwin
Documentation for WarpTwin models and classes.
Loading...
Searching...
No Matches
FrameDynamics.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
/*
17
Frame Dynamics header file
18
--------------------------
19
20
Author: Alex Reynolds
21
*/
22
#ifndef FRAMES_FRAME_DYNAMICS_H
23
#define FRAMES_FRAME_DYNAMICS_H
24
25
#include "
gncutils/dynamics/Rates.hpp
"
26
#include "
core/CartesianVector.hpp
"
27
#include "
core/Matrix.hpp
"
28
#include "
frames/Frame.h
"
29
30
#define NUM_INTEGRATED_STATES 13
31
32
namespace
warptwin
{
33
34
class
FrameDynamics
:
public
warpos::Rates
<NUM_INTEGRATED_STATES> {
35
public
:
40
int16
calculateRates
(floating_point time,
41
const
std::array<floating_point, NUM_INTEGRATED_STATES> &state,
42
std::array<floating_point, NUM_INTEGRATED_STATES> &out_rates)
override
;
43
45
void
setFramePtr
(
Frame
* frame_ptr) {_frame_ptr = frame_ptr;}
46
Frame
*
getFramePtr
() {
return
_frame_ptr;}
47
private
:
50
Frame
* _frame_ptr;
51
};
52
53
}
54
55
#endif
CartesianVector.hpp
Frame.h
Matrix.hpp
Rates.hpp
warpos::Rates
Definition
Rates.hpp:28
warptwin::FrameDynamics
Definition
FrameDynamics.h:34
warptwin::FrameDynamics::getFramePtr
Frame * getFramePtr()
Definition
FrameDynamics.h:46
warptwin::FrameDynamics::calculateRates
int16 calculateRates(floating_point time, const std::array< floating_point, 13 > &state, std::array< floating_point, 13 > &out_rates) override
Function to calculate frame rates of change for a frame.
Definition
FrameDynamics.cpp:19
warptwin::FrameDynamics::setFramePtr
void setFramePtr(Frame *frame_ptr)
Getter and setter for the frame pointer.
Definition
FrameDynamics.h:45
warptwin::Frame
Frame class definition.
Definition
Frame.h:96
warptwin
Class to propagate CR3BP dynamics in characteristic units.
Definition
statistics.hpp:22
cpp
src
frames
FrameDynamics.h
Generated by
1.16.1