Skip to content

Hot-fix working in vts#8

Merged
JmcRobbie merged 1 commit intodevelopfrom
Hotfix-VTS_Compatibility
Sep 24, 2018
Merged

Hot-fix working in vts#8
JmcRobbie merged 1 commit intodevelopfrom
Hotfix-VTS_Compatibility

Conversation

@JmcRobbie
Copy link

No description provided.

@JmcRobbie JmcRobbie requested a review from rskew September 24, 2018 11:34
@JmcRobbie JmcRobbie merged commit 2d4e64e into develop Sep 24, 2018
@JmcRobbie JmcRobbie deleted the Hotfix-VTS_Compatibility branch September 24, 2018 11:54
/** Writing to the angular velocity file */
Vector3D vel = satellite.getStates().getCurrentState().getAttitude().getSpin();
vel.normalize();
if (vel.getNorm() != 0) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this check if it's equal to 1 instead?

Copy link
Author

Choose a reason for hiding this comment

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

No the purpose of this is to check for divide by zero errors, this is correct


/** Writing to the angular velocity file */
Vector3D vel = satellite.getStates().getCurrentState().getAttitude().getSpin();
vel.normalize();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Here the operation is used as if it works in-place, but all the other uses of it treat it as if it returns the computed value. Maybe remove this line as it's redundant with the check on the next couple of lines.

Copy link
Author

Choose a reason for hiding this comment

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

Yep, I forgot to delete that line

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.

2 participants