WarpTwin
Documentation for WarpTwin models and classes.
Loading...
Searching...
No Matches
Integrator.hpp
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/*
17Integrator header file
18
19Author: Alex Reynolds
20*/
21
22#ifndef UTILS_INTEGRATOR_HPP
23#define UTILS_INTEGRATOR_HPP
24
25#include <array>
26
28
29namespace warpos {
30
36 template <uint32 N>
37 class Integrator {
38 public:
40 Integrator(Rates<N> &rate_calculator);
41
49 virtual int16 step(floating_point start_time, floating_point end_time,
50 const std::array<floating_point, N> &start_state, std::array<floating_point, N> &out_state) {
52 }
53
54 protected:
57 };
58
59 template <uint32 N>
61 : _rate_calculator(rate_calculator) {}
62
63}
64
65#endif
virtual int16 step(floating_point start_time, floating_point end_time, const std::array< floating_point, N > &start_state, std::array< floating_point, N > &out_state)
Definition Integrator.hpp:49
Integrator(Rates< N > &rate_calculator)
Constructor for the integrator.
Definition Integrator.hpp:60
Rates< N > & _rate_calculator
Reference to dynamics object that calculates rates.
Definition Integrator.hpp:56
Definition Rates.hpp:28
#define ERROR_NOT_OVERRIDDEN
Error when a virtual function is not called but not overwridden and should result in fault worthy beh...
Definition clockwerkerrors.h:175
Definition DeadReckon.cpp:20