Disable unneeded SimObjects from default_trick_sys.sm in Trick exampl… (#1719)

* Disable unneeded SimObjects from default_trick_sys.sm in Trick example sims.

* Take out unit test disable. Add some S_defines I forgot.
This commit is contained in:
jmpenn 2024-05-23 10:12:27 -05:00 committed by GitHub
parent fdb2bb20b9
commit ee2f824550
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
16 changed files with 95 additions and 9 deletions

View File

@ -7,7 +7,13 @@ LIBRARY DEPENDENCIES:
(Aircraft/src/Waypoint.cpp) (Aircraft/src/Waypoint.cpp)
) )
**************************************************************************/ **************************************************************************/
#define TRICK_NO_MONTE_CARLO
#define TRICK_NO_MASTERSLAVE
#define TRICK_NO_INSTRUMENTATION
#define TRICK_NO_REALTIMEINJECTOR
#define TRICK_NO_ZEROCONF
#include "sim_objects/default_trick_sys.sm" #include "sim_objects/default_trick_sys.sm"
##include "Aircraft/include/Aircraft.hh" ##include "Aircraft/include/Aircraft.hh"
##include "Aircraft/include/Waypoint.hh" ##include "Aircraft/include/Waypoint.hh"

View File

@ -5,7 +5,13 @@ LIBRARY DEPENDENCIES:
((balloon/src/Balloon.cpp) ((balloon/src/Balloon.cpp)
(atmosphere/src/atmosphere.c)) (atmosphere/src/atmosphere.c))
*************************************************************/ *************************************************************/
#define TRICK_NO_MONTE_CARLO
#define TRICK_NO_MASTERSLAVE
#define TRICK_NO_INSTRUMENTATION
#define TRICK_NO_REALTIMEINJECTOR
#define TRICK_NO_ZEROCONF
#include "sim_objects/default_trick_sys.sm" #include "sim_objects/default_trick_sys.sm"
##include "balloon/include/Balloon.hh" ##include "balloon/include/Balloon.hh"
class BalloonSimObject : public Trick::SimObject { class BalloonSimObject : public Trick::SimObject {

View File

@ -4,7 +4,13 @@ PURPOSE:
LIBRARY DEPENDENCIES: LIBRARY DEPENDENCIES:
((pool_table/src/pool_table.cpp)) ((pool_table/src/pool_table.cpp))
*************************************************************/ *************************************************************/
#define TRICK_NO_MONTE_CARLO
#define TRICK_NO_MASTERSLAVE
#define TRICK_NO_INSTRUMENTATION
#define TRICK_NO_REALTIMEINJECTOR
#define TRICK_NO_ZEROCONF
#include "sim_objects/default_trick_sys.sm" #include "sim_objects/default_trick_sys.sm"
##include "pool_table/include/pool_table.hh" ##include "pool_table/include/pool_table.hh"
class PoolTableSimObject : public Trick::SimObject { class PoolTableSimObject : public Trick::SimObject {

View File

@ -4,7 +4,13 @@ PURPOSE:
LIBRARY DEPENDENCIES: LIBRARY DEPENDENCIES:
((contact/src/Contact.cpp)) ((contact/src/Contact.cpp))
*************************************************************/ *************************************************************/
#define TRICK_NO_MONTE_CARLO
#define TRICK_NO_MASTERSLAVE
#define TRICK_NO_INSTRUMENTATION
#define TRICK_NO_REALTIMEINJECTOR
#define TRICK_NO_ZEROCONF
#include "sim_objects/default_trick_sys.sm" #include "sim_objects/default_trick_sys.sm"
##include "contact/include/Contact.hh" ##include "contact/include/Contact.hh"
class ContactSimObject : public Trick::SimObject { class ContactSimObject : public Trick::SimObject {
public: public:

View File

@ -5,7 +5,13 @@ LIBRARY DEPENDENCIES:
((lander/src/Lander.cpp) ((lander/src/Lander.cpp)
(PIDController/src/PIDController.cpp)) (PIDController/src/PIDController.cpp))
*************************************************************/ *************************************************************/
#define TRICK_NO_MONTE_CARLO
#define TRICK_NO_MASTERSLAVE
#define TRICK_NO_INSTRUMENTATION
#define TRICK_NO_REALTIMEINJECTOR
#define TRICK_NO_ZEROCONF
#include "sim_objects/default_trick_sys.sm" #include "sim_objects/default_trick_sys.sm"
##include "lander/include/Lander.hh" ##include "lander/include/Lander.hh"
class LanderSimObject : public Trick::SimObject { class LanderSimObject : public Trick::SimObject {
public: public:

View File

@ -11,8 +11,13 @@ LIBRARY DEPENDENCIES:
(msd/src/msd_shutdown.cpp) (msd/src/msd_shutdown.cpp)
) )
*************************************************************/ *************************************************************/
#define TRICK_NO_MONTE_CARLO
#define TRICK_NO_MASTERSLAVE
#define TRICK_NO_INSTRUMENTATION
#define TRICK_NO_REALTIMEINJECTOR
#define TRICK_NO_ZEROCONF
#include "sim_objects/default_trick_sys.sm" #include "sim_objects/default_trick_sys.sm"
// #include "sim_objects/WebServer.sm" // #include "sim_objects/WebServer.sm"
##include "msd/include/msd.hh" ##include "msd/include/msd.hh"
@ -32,4 +37,5 @@ class MSDSimObject : public Trick::SimObject {
} ; } ;
MSDSimObject dyn ; MSDSimObject dyn ;
IntegLoop dyn_integloop (0.01) dyn ; IntegLoop dyn_integloop (0.01) dyn ;

View File

@ -4,7 +4,11 @@ PURPOSE:
LIBRARY DEPENDENCIES: LIBRARY DEPENDENCIES:
((parachute/src/Parachutist.cpp)) ((parachute/src/Parachutist.cpp))
*************************************************************/ *************************************************************/
#define TRICK_NO_MONTE_CARLO
#define TRICK_NO_MASTERSLAVE
#define TRICK_NO_INSTRUMENTATION
#define TRICK_NO_REALTIMEINJECTOR
#define TRICK_NO_ZEROCONF
#include "sim_objects/default_trick_sys.sm" #include "sim_objects/default_trick_sys.sm"
##include "parachute/include/Parachutist.hh" ##include "parachute/include/Parachutist.hh"

View File

@ -6,8 +6,13 @@ LIBRARY DEPENDENCIES:
(manipulator/manipulator.cc) (manipulator/manipulator.cc)
) )
*************************************************************/ *************************************************************/
#define TRICK_NO_MONTE_CARLO
#define TRICK_NO_MASTERSLAVE
#define TRICK_NO_INSTRUMENTATION
#define TRICK_NO_REALTIMEINJECTOR
#define TRICK_NO_ZEROCONF
#include "sim_objects/default_trick_sys.sm" #include "sim_objects/default_trick_sys.sm"
##include "include/trick/exec_proto.h" ##include "include/trick/exec_proto.h"
##include "manipulator/manipulator.hh" ##include "manipulator/manipulator.hh"

View File

@ -4,7 +4,13 @@ PURPOSE:
LIBRARY DEPENDENCIES: LIBRARY DEPENDENCIES:
((rocket/src/Rocket.cpp)) ((rocket/src/Rocket.cpp))
*************************************************************/ *************************************************************/
#define TRICK_NO_MONTE_CARLO
#define TRICK_NO_MASTERSLAVE
#define TRICK_NO_INSTRUMENTATION
#define TRICK_NO_REALTIMEINJECTOR
#define TRICK_NO_ZEROCONF
#include "sim_objects/default_trick_sys.sm" #include "sim_objects/default_trick_sys.sm"
##include "rocket/include/Rocket.hh" ##include "rocket/include/Rocket.hh"
class ModelRocketSimObject : public Trick::SimObject { class ModelRocketSimObject : public Trick::SimObject {
public: public:

View File

@ -4,7 +4,13 @@ PURPOSE:
LIBRARY DEPENDENCIES: LIBRARY DEPENDENCIES:
((satellite/src/Satellite.cpp)) ((satellite/src/Satellite.cpp))
*************************************************************/ *************************************************************/
#define TRICK_NO_MONTE_CARLO
#define TRICK_NO_MASTERSLAVE
#define TRICK_NO_INSTRUMENTATION
#define TRICK_NO_REALTIMEINJECTOR
#define TRICK_NO_ZEROCONF
#include "sim_objects/default_trick_sys.sm" #include "sim_objects/default_trick_sys.sm"
##include "satellite/include/Satellite.hh" ##include "satellite/include/Satellite.hh"
class SatelliteSimObject : public Trick::SimObject { class SatelliteSimObject : public Trick::SimObject {
public: public:

View File

@ -5,8 +5,13 @@ LIBRARY DEPENDENCIES:
( (
) )
*************************************************************/ *************************************************************/
#define TRICK_NO_MONTE_CARLO
#define TRICK_NO_MASTERSLAVE
#define TRICK_NO_INSTRUMENTATION
#define TRICK_NO_REALTIMEINJECTOR
#define TRICK_NO_ZEROCONF
#include "sim_objects/default_trick_sys.sm" #include "sim_objects/default_trick_sys.sm"
##include "Satellite/include/Satellite.hh" ##include "Satellite/include/Satellite.hh"
##include "Satellite/include/SatGraphicsComm.hh" ##include "Satellite/include/SatGraphicsComm.hh"

View File

@ -5,7 +5,13 @@ LIBRARY DEPENDENCIES:
((CrewModule/src/CrewModuleDynamics.o) ((CrewModule/src/CrewModuleDynamics.o)
(CrewModule/src/CrewModuleShape.o)) (CrewModule/src/CrewModuleShape.o))
**************************************************************************/ **************************************************************************/
#define TRICK_NO_MONTE_CARLO
#define TRICK_NO_MASTERSLAVE
#define TRICK_NO_INSTRUMENTATION
#define TRICK_NO_REALTIMEINJECTOR
#define TRICK_NO_ZEROCONF
#include "sim_objects/default_trick_sys.sm" #include "sim_objects/default_trick_sys.sm"
##include "CrewModule/include/CrewModuleDynamics.hh" ##include "CrewModule/include/CrewModuleDynamics.hh"
class CrewModuleSimObject : public Trick::SimObject { class CrewModuleSimObject : public Trick::SimObject {

View File

@ -4,7 +4,13 @@ PURPOSE:
LIBRARY DEPENDENCIES: LIBRARY DEPENDENCIES:
((submarine/src/Submarine.cpp)) ((submarine/src/Submarine.cpp))
*************************************************************/ *************************************************************/
#define TRICK_NO_MONTE_CARLO
#define TRICK_NO_MASTERSLAVE
#define TRICK_NO_INSTRUMENTATION
#define TRICK_NO_REALTIMEINJECTOR
#define TRICK_NO_ZEROCONF
#include "sim_objects/default_trick_sys.sm" #include "sim_objects/default_trick_sys.sm"
##include "submarine/include/Submarine.hh" ##include "submarine/include/Submarine.hh"
class SubmarineSimObject : public Trick::SimObject { class SubmarineSimObject : public Trick::SimObject {

View File

@ -15,10 +15,13 @@ LIBRARY DEPENDENCIES:
(Sun/src/sun_pred_slow_display.c) (Sun/src/sun_pred_slow_display.c)
) )
*************************************************************/ *************************************************************/
#define TRICK_NO_MONTE_CARLO
#define TRICK_NO_MASTERSLAVE
#define TRICK_NO_INSTRUMENTATION
#define TRICK_NO_REALTIMEINJECTOR
#define TRICK_NO_ZEROCONF
#include "sim_objects/default_trick_sys.sm" #include "sim_objects/default_trick_sys.sm"
##include "Sun/include/sun_pred.h" ##include "Sun/include/sun_pred.h"
##include "sim_services/MemoryManager/include/wcs_ext.h" ##include "sim_services/MemoryManager/include/wcs_ext.h"

View File

@ -8,8 +8,13 @@ LIBRARY DEPENDENCIES:
(waterclock/src/waterclock_shutdown.c) (waterclock/src/waterclock_shutdown.c)
) )
*************************************************************/ *************************************************************/
#define TRICK_NO_MONTE_CARLO
#define TRICK_NO_MASTERSLAVE
#define TRICK_NO_INSTRUMENTATION
#define TRICK_NO_REALTIMEINJECTOR
#define TRICK_NO_ZEROCONF
#include "sim_objects/default_trick_sys.sm" #include "sim_objects/default_trick_sys.sm"
##include "waterclock/include/waterclock_numeric.h" ##include "waterclock/include/waterclock_numeric.h"
class WaterClockSimObject : public Trick::SimObject { class WaterClockSimObject : public Trick::SimObject {

View File

@ -5,7 +5,11 @@ LIBRARY DEPENDENCIES:
((Vehicle/src/vehicleOne.cpp) ((Vehicle/src/vehicleOne.cpp)
(Control/src/PIDController.cpp)) (Control/src/PIDController.cpp))
*************************************************************/ *************************************************************/
#define TRICK_NO_MONTE_CARLO
#define TRICK_NO_MASTERSLAVE
#define TRICK_NO_INSTRUMENTATION
#define TRICK_NO_REALTIMEINJECTOR
#define TRICK_NO_ZEROCONF
#include "sim_objects/default_trick_sys.sm" #include "sim_objects/default_trick_sys.sm"
##include "Vehicle/include/vehicleOne.hh" ##include "Vehicle/include/vehicleOne.hh"