26#ifndef MODELS_SUPPORT_SIM_TABLE_SCHEDULE_MODEL_H
27#define MODELS_SUPPORT_SIM_TABLE_SCHEDULE_MODEL_H
50 MODEL(SimTableScheduleModel)
60 SIGNAL(table_schedule_rate,
int, 1000)
65 SIGNAL(measure_timing,
int, false)
89 int16
start() override;
#define SIGNAL(NAME, TYPE, INITIAL_VALUE)
Definition appmacros.h:27
#define START_PARAMS
Definition appmacros.h:42
#define END_OUTPUTS
Definition appmacros.h:33
#define END_PARAMS
Definition appmacros.h:47
#define START_OUTPUTS
Definition appmacros.h:28
#define END_INPUTS
Definition appmacros.h:40
#define START_INPUTS
Definition appmacros.h:35
Definition CircularBuffer.hpp:28
Extensions to the C++ standard library.
Definition half.hpp:2325
Definition DeadReckon.cpp:20
Class to propagate CR3BP dynamics in characteristic units.
Definition statistics.hpp:22
virtual int16 registerApp(warpos::App &app, int16 slot)
Function to register apps with the table scheduler.
std::vector< std::string > _names
Definition SimTableScheduleModel.h:118
int16 start() override
Class to execute logging.
bool _first_run
Definition SimTableScheduleModel.h:120
std::vector< int > _schedule_mapping
Map schedule indices to timing vector.
Definition SimTableScheduleModel.h:116
SIGNAL(_mu, double, warpos::earth_wgs84.mu)
clockwerk::Time _step_end_sys_time
Definition SimTableScheduleModel.h:110
int16 _last_sch_step
Definition SimTableScheduleModel.h:119
std::vector< std::pair< warpos::App *, int16 > > _registries
Definition SimTableScheduleModel.h:98
int16 _executeScheduleStep(const clockwerk::Time &step_time)
Execute schedule step given current step time.
Definition SimTableScheduleModel.cpp:257
clockwerk::Time _next_step_start
Definition SimTableScheduleModel.h:111
warpos::TableScheduler< 200 > * _ts_200
Definition SimTableScheduleModel.h:105
std::vector< std::vector< double > > _timing_values_micros
The number of microseconds per app to run.
Definition SimTableScheduleModel.h:115
warpos::TableScheduler< 1000 > * _ts_1000
Definition SimTableScheduleModel.h:106
int16 activate() override
std::chrono::time_point< std::chrono::high_resolution_clock > _start_time
Definition SimTableScheduleModel.h:121
MODEL(Servo) public int16 deactivate() override
Model to simulate a servo's motion.
std::chrono::time_point< std::chrono::high_resolution_clock > _end_time
Definition SimTableScheduleModel.h:122
@ MODEL
Simplified dynamics model representing motion in the circular restricted 3 body problem.
Definition ImNode.h:31
warpos::TableScheduler< 100 > * _ts_100
Definition SimTableScheduleModel.h:104
warpos::TableScheduler< 50 > * _ts_50
Definition SimTableScheduleModel.h:103
std::vector< warpos::App * > _app_record
Record of mapped apps.
Definition SimTableScheduleModel.h:117
warpos::TableScheduler< 10 > * _ts_10
Definition SimTableScheduleModel.h:102
int16 execute() override
Function to check monitor input conditions and set trigger flag accordingly. Should be implemented in...
clockwerk::Time _time_per_slot
Definition SimTableScheduleModel.h:109
int _total_slots
Definition SimTableScheduleModel.h:114