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

docs: variable documentation #134

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

docs: variable documentation #134

wants to merge 6 commits into from

Conversation

ihagad
Copy link
Contributor

@ihagad ihagad commented Nov 22, 2024

No description provided.

@ihagad ihagad linked an issue Nov 22, 2024 that may be closed by this pull request
8 tasks
@ihagad ihagad requested a review from ntlhui November 22, 2024 01:07
Copy link
Contributor

@ucsd-e4e-role ucsd-e4e-role left a comment

Choose a reason for hiding this comment

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

What we talked about...

Copy link
Contributor

@ntlhui ntlhui left a comment

Choose a reason for hiding this comment

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

See @ucsd-e4e-role 's comments

@ihagad ihagad requested a review from ntlhui December 19, 2024 21:45
int32_t water;
/**
* @brief Array saving average of the accumulated accelerometer data on the
* x, y, and z axis in g scaled up by 16834
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this mean that if acc has the value {1, 0, 0}, I should interpret this as [0.000059, 0, 0] g's of acceleration?

Conversely, should I expect [1, 0, 0] g's of acceleration to be represented at {16834, 0, 0}?

Copy link
Contributor

Choose a reason for hiding this comment

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

when you specify this, please add units for the real-world value so that it is unambiguously the real-world value vs the stored representation.

Copy link
Contributor

Choose a reason for hiding this comment

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

This ends up being confusing - are we stating that the values as stored in memory are directly interpretable as G's of acceleration?

Additionally, in line 26, I think you have the wrong constant.

One suggested wording might be this:

acc[i] = acceleration[i] * 16384, where `acceleration` is the acceleration in G's (multiple of Earth gravity), and acc is the stored representation, stored as `int32_t`.  Thus, acc[i] = 16384 = 1 G.

Consider updating the other field documentation to be similar.

Comment on lines 46 to 47
* @brief Indicates if GNSS point is locked and more than 4 point
* satellites in view
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the set of possible values [0, 1]? If so, what does each value mean?

int32_t water;
/**
* @brief Array saving average of the accumulated accelerometer data on the
* x, y, and z axis in g scaled up by 16834
Copy link
Contributor

Choose a reason for hiding this comment

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

when you specify this, please add units for the real-world value so that it is unambiguously the real-world value vs the stored representation.

@ihagad ihagad requested a review from ntlhui January 7, 2025 21:20
int32_t water;
/**
* @brief Array saving average of the accumulated accelerometer data on the
* x, y, and z axis in g scaled up by 16834
Copy link
Contributor

Choose a reason for hiding this comment

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

This ends up being confusing - are we stating that the values as stored in memory are directly interpretable as G's of acceleration?

Additionally, in line 26, I think you have the wrong constant.

One suggested wording might be this:

acc[i] = acceleration[i] * 16384, where `acceleration` is the acceleration in G's (multiple of Earth gravity), and acc is the stored representation, stored as `int32_t`.  Thus, acc[i] = 16384 = 1 G.

Consider updating the other field documentation to be similar.

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.

docs: Data Collection
3 participants