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/*
17Frame Dynamics header file
18--------------------------
19
20Author: Alex Reynolds
21*/
22#ifndef FRAMES_FRAME_DYNAMICS_H
23#define FRAMES_FRAME_DYNAMICS_H
24
27#include "core/Matrix.hpp"
28#include "frames/Frame.h"
29
30#define NUM_INTEGRATED_STATES 13
31
32namespace 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
Definition Rates.hpp:28
Definition FrameDynamics.h:34
Frame * getFramePtr()
Definition FrameDynamics.h:46
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
void setFramePtr(Frame *frame_ptr)
Getter and setter for the frame pointer.
Definition FrameDynamics.h:45
Frame class definition.
Definition Frame.h:96
Class to propagate CR3BP dynamics in characteristic units.
Definition statistics.hpp:22