Thanks to visit codestin.com
Credit goes to github.com

Skip to content

implementing DBS(Depth Below Surface)#138

Merged
elpiel merged 8 commits into
AeroRust:mainfrom
asnimansari:main
Dec 26, 2024
Merged

implementing DBS(Depth Below Surface)#138
elpiel merged 8 commits into
AeroRust:mainfrom
asnimansari:main

Conversation

@asnimansari
Copy link
Copy Markdown

No description provided.

Comment thread src/parse.rs Outdated
@@ -1,5 +1,6 @@
use core::str;

use dbs::DbsData;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

  • You need to export the DbsData in sentences/mod.rs like the rest of the *Data structs and you can remove this import as sentences::* is imported below.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

FIXED

Comment thread src/sentences/dbs.rs Outdated
/// ```text
/// 1 2 3 4 5 6 7
/// | | | | | | |
/// $--DBT,x.x,f,x.x,M,x.x,F*hh<CR><LF>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
/// $--DBT,x.x,f,x.x,M,x.x,F*hh<CR><LF>
/// $--DBT,x.x,f,x.x,M,x.x,F*hh<CR><LF>
/// ```

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Whopsy, I see a different sentence example here?! DBT instead of DBS

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

FIXED

Comment thread src/sentences/dbs.rs Outdated
Comment on lines +20 to +22
/// In real-world sensors, sometimes not all three conversions are reported. So you might see something like $SDDBT,,f,22.5,M,,F*cs
/// Example: $DBS,x.x,f,x.x,M,x.x,F*hh<CR><LF>
/// ```
Copy link
Copy Markdown
Member

@elpiel elpiel Dec 11, 2024

Choose a reason for hiding this comment

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

Suggested change
/// In real-world sensors, sometimes not all three conversions are reported. So you might see something like $SDDBT,,f,22.5,M,,F*cs
/// Example: $DBS,x.x,f,x.x,M,x.x,F*hh<CR><LF>
/// ```
///
/// In real-world sensors, sometimes not all three conversions are reported.
/// So you might see something like `$SDDBT,,f,22.5,M,,F*cs`
///
/// Examples:
/// * `$DBS,x.x,f,x.x,M,x.x,F*hh<CR><LF>`

Copy link
Copy Markdown
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
Member

@elpiel elpiel left a comment

Choose a reason for hiding this comment

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

Great first PR @asnimansari 🎉 and thank you for your contribution!
A few small tweaks on the docs and exported Data struct and it should be good for merging.

@asnimansari
Copy link
Copy Markdown
Author

@elpiel made the suggested changes.

Comment thread src/sentences/dbs.rs Outdated
@elpiel
Copy link
Copy Markdown
Member

elpiel commented Dec 12, 2024

CI checks are failing, you can check them out and fix them

@asnimansari
Copy link
Copy Markdown
Author

asnimansari commented Dec 12, 2024

CI checks are failing; you can check them out and fix them
Yes. Fixed.
Should we think of adding a pre-commit hook for these checks?
@elpiel

@elpiel
Copy link
Copy Markdown
Member

elpiel commented Dec 12, 2024

You gave me an idea 💡

I'll see hooks and how we can set them up.

Something, though, you need to run clippy and rustfmt with nightly but build your code using stable rust.

Imo This is out of scope for this pr

@asnimansari asnimansari requested a review from elpiel December 12, 2024 19:45
@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 12, 2024

Codecov Report

Attention: Patch coverage is 68.00000% with 8 lines in your changes missing coverage. Please review.

Project coverage is 78.62%. Comparing base (18c69db) to head (b790e70).
Report is 9 commits behind head on main.

Files with missing lines Patch % Lines
src/sentences/dbs.rs 73.91% 6 Missing ⚠️
src/parse.rs 0.00% 1 Missing ⚠️
src/parser.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #138      +/-   ##
==========================================
- Coverage   78.80%   78.62%   -0.19%     
==========================================
  Files          38       39       +1     
  Lines        1425     1450      +25     
==========================================
+ Hits         1123     1140      +17     
- Misses        302      310       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@asnimansari
Copy link
Copy Markdown
Author

@elpiel could you help me with the remaining checks?
What needs to be changed?

@elpiel
Copy link
Copy Markdown
Member

elpiel commented Dec 15, 2024

It's ready to be merged.
Could you just add an example sentence here:
https://github.com/AeroRust/nmea/blob/main/tests%2Fall_supported_messages.rs

@asnimansari
Copy link
Copy Markdown
Author

It's ready to be merged. Could you just add an example sentence here: https://github.com/AeroRust/nmea/blob/main/tests%2Fall_supported_messages.rs

@elpiel done.

Comment thread tests/all_supported_messages.rs Outdated
@asnimansari
Copy link
Copy Markdown
Author

cool
@elpiel how do we merge this?

@elpiel elpiel merged commit 0b2163a into AeroRust:main Dec 26, 2024
@elpiel
Copy link
Copy Markdown
Member

elpiel commented Dec 26, 2024

Thank you once again for opening the pr!

I approved the run and just had to wait for it to finish 😋

@asnimansari
Copy link
Copy Markdown
Author

Cool. Thanks.
@elpiel

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