VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
orbitActuator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
11 #include "vrfutil/SGP4.h"
12 
13 class DtOrbitActuatorPSR;
14 
16 {
17 public:
18 
19  //constructor
20  DtOrbitActuator(const DtString& name, DtLocalObject* object,
21  DtSimulationServices* simManager, DtComponentDescriptor* compDescriptor,
22  DtReaderWriterRegistry* parentRegistry = 0);
23 
24  //destructor
25  virtual ~DtOrbitActuator();
26 
27  //Perform any initialization required by the actuator
28  virtual bool init();
29 
30  //Returns a string from compTypes.h, identifying the type of component
31  virtual const char* type() const;
32 
33  //Calculate new kinematic state, and copy it to state repository
34  virtual void tick();
35 
36 protected:
37  virtual bool createPSR();
38 
39  static void setOrbitCallback(DtSimMessage * msg, void * usr);
40  virtual void processSetOrbit(DtSimMessage* msg);
41 
42 public:
43 
44  //Creator function to be registered with the DtSimComponentFactory --
45  //see main.cxx
46  static DtSimComponent* creator(const DtString& name, DtLocalObject* object,
47  DtSimulationServices* simManager, DtComponentDescriptor* compDescriptor,
48  DtReaderWriterRegistry* parentRegistry);
49 
50 protected:
55 
61 };
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
Definition: SGP4.h:70
DtMovementLocalObjectFacade myMovementLocalObjectFacade
Definition: orbitActuator.h:59
bool mySatRecInitialized
Definition: orbitActuator.h:56
virtual bool init()
Overridden to cache a pointer to the entity's radio in this class.
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
double timeSatRecInitialized
Definition: orbitActuator.h:58
Definition: readerWriterRegistry.h:39
End User Description: DtActuator is the base class for all actuator model components. Developer Description: The DtActuator base class caches a pointer to the entity's radio for convenience. Derived classes may have articulated parts that are configured from the DtActuatorComponentDescriptor's DtSimArtPartDescriptorList. For each articulated part in the list a DtArticulatedPartStateRepository will be created to store the data for the part such as it's location, rotation and so forth. These are created in the entity's DtVrfObjectStateRepository createParts() function. This call creates all the attached parts for all the actuators. These articulated state repositories are managed by the DtAttachmentManager. They are cached by their partType which is the DIS Enumeration describing the part from the disEnums.h file and was specified in the actuator's DtActuatorComponentDescriptor as descriped above. The partType is used as the category of the DtObjectType used to look up articulated parts in the DtAttachementManager. When an actuator needs access to a particular articulated part it looks it up by the part's object type.
Definition: actuatorComponent.h:47
File: simMsg.h.
Definition: simMessage.h:35
DtOrbitActuatorPSR * myProcessState
Definition: orbitActuator.h:51
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
Definition: orbitActuator.h:15
bool myPositionCalculated
Track whether or not this position is already calculated to avoid doing it each tick, since it will remain constant.
Definition: orbitActuator.h:54
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:89
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
DtOrbitActuatorPSR is a process state repository which holds state variables for the DtOrbitActuator ...
Definition: orbitActuatorPSR.h:18
elsetrec mySatRec
Definition: orbitActuator.h:57
bool myWarnedOnce
Definition: orbitActuator.h:60
virtual const char * type() const =0
Returns a string identifies the class type of component. Type values are defined in compTypes...
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)