Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add time tag to CSS measurement message #698

Merged
merged 3 commits into from
May 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/source/Support/bskReleaseNotes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Version |release|
- The fuel tank module is refactored to remove the limitation of a only being able to have a single instance of a
specific tank model type.
- Update Basilisk documentation build system to use latest version of ``sphinx`` and ``sphinx_rtd_theme``
- Added time tag to :ref:`CSSArraySensorMsgPayload`


Version 2.3.0 (April 5, 2024)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

/*! @brief Output structure for CSS array or constellation interface. Each element contains the raw measurement which should be a cosine value nominally */
typedef struct {
double timeTag; //!< [s] Current vehicle time-tag associated with measurements
double CosValue[MAX_NUM_CSS_SENSORS]; //!< Current measured CSS value (ideally a cosine value) for the constellation of CSS sensors
}CSSArraySensorMsgPayload;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ void CSSConstellation::UpdateState(uint64_t CurrentSimNanos)
this->outputBuffer.CosValue[itp - this->sensorList.begin()] = it->sensedValue;

}
this->outputBuffer.timeTag = (double) (CurrentSimNanos * NANO2SEC);
this->constellationOutMsg.write(&this->outputBuffer, this->moduleID, CurrentSimNanos);
}

Expand Down
Loading