Skip to content

Add updated events manager model from ramtares_main - #120

Open
Minsoo-Kang-space wants to merge 1 commit into
mainfrom
vehicle_management-events_manager
Open

Minsoo-Kang-space wants to merge 1 commit into
mainfrom
vehicle_management-events_manager

Conversation

@Minsoo-Kang-space

Copy link
Copy Markdown
Contributor

[Safe state of CML for support of GNC_PAR upgrade]

[Enhanced Logging Model Content]

@Minsoo-Kang-space
Minsoo-Kang-space marked this pull request as ready for review September 24, 2026 16:01
@Minsoo-Kang-space
Minsoo-Kang-space requested a review from a team September 24, 2026 16:01
Comment on lines +50 to +56
// if (require_all) {
// // force multi_shot for all triggers when the set requires all triggers
// // to be fulfilled for the set to be fulfilled. This fixes a discrepancy
// // with DataCollect's behavior without requiring the logging user to be
// // careful with the multi_shot optimization.
// trigger->multi_shot = true;
// }

@ninotarantino ninotarantino Sep 24, 2026 •

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.

Commented-out code isn't allowed unless there's some additional metadata included: https://nasa.github.io/cml/contributing/coding-standards.html#cml-mcs-general-5-commented-out-code-shall-only-be-allowed-when-accompanied-by-an-associated-project-issue-point-of-contact-email-address-and-current-date.

Why is this commented out? What additional changes are necessary before uncommenting it? If this comment remains in, it needs to be specific about what "DataCollect" refers to. No such type or function exists in CML, Trick, or JEOD.

Comment on lines +416 to +418
// Semantically equivalent to static_cast<bool>(ref) (i.e., ref != 0.0),
// but avoids '=='/'!=' comparisons that trigger -Wfloat-equal.
reference = (ref > 0.0) || (ref < 0.0) || std::isnan(ref);

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.

Use the standard library.

Suggested change
// Semantically equivalent to static_cast<bool>(ref) (i.e., ref != 0.0),
// but avoids '=='/'!=' comparisons that trigger -Wfloat-equal.
reference = (ref > 0.0) || (ref < 0.0) || std::isnan(ref);
reference = std::fpclassify(ref) != FP_ZERO;

tested more than once per cycle, leading to unintended behavior.*/
Boolean used to lock at each cycle, so each WatchValuesBase cannot be
tested more than once per cycle. Elaborate extension of WatchValuesBaseCore
-- such as EventTrigger -- caan create false negatives if evaluated

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.

Spelling.

Suggested change
-- such as EventTrigger -- caan create false negatives if evaluated
-- such as EventTrigger -- can create false negatives if evaluated

Comment on lines +74 to +75
(commonly set when an WatchValue is added to the CompoundEventsManager's
managed_triggers listi, such as when using create)trigger(...))

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.

Grammar.

Suggested change
(commonly set when an WatchValue is added to the CompoundEventsManager's
managed_triggers listi, such as when using create)trigger(...))
(commonly set when a WatchValue is added to the CompoundEventsManager's
managed_triggers list, such as when using create_trigger(...))

@coveralls

Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 89.461% (+0.005%) from 89.456% — vehicle_management-events_manager into main

This branch has not been deployed

No deployments
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.

3 participants