Skip to content

1992 add ability to log at multiple rates#1993

Merged
sharmeye merged 11 commits intonasa:masterfrom
excaliburtb:1992-add-ability-to-log-at-multiple-rates
Dec 4, 2025
Merged

1992 add ability to log at multiple rates#1993
sharmeye merged 11 commits intonasa:masterfrom
excaliburtb:1992-add-ability-to-log-at-multiple-rates

Conversation

@excaliburtb
Copy link
Copy Markdown
Contributor

Fixes #1992


// Account for the fact that the current time tics is actually already passed for a checkpoint.
long long curr_tics = exec_get_time_tics();
for(size_t cycleIndex = 0; cycleIndex < logging_next_tics.size(); ++cycleIndex)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about creating a helper function to update logging schedule based on the given curr_tics since the code after curr_tics is the same as in data_record(double in_time)?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@hchen99
Copy link
Copy Markdown
Contributor

hchen99 commented Nov 4, 2025

Also, maybe add a simple test case using multi-rate recording to SIM_checkpoint_data_recording ;-)

Comment thread trick_source/sim_services/DataRecord/DataRecordGroup.cpp Outdated
Comment thread include/trick/DataRecordGroup.hh Outdated
long long calculate_next_logging_tic();

/**
* Vector of next integration time in tics for each rate in the integRates vector
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments copied from the multi-rate integrator ;-)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not fixed. found more.. lol

@sharmeye sharmeye merged commit b6061e7 into nasa:master Dec 4, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add ability to log at multiple rates

4 participants