-
Notifications
You must be signed in to change notification settings - Fork 41
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
Initialize APA #119
Initialize APA #119
Conversation
Signed-off-by: Lachezar Lechev <[email protected]>
Signed-off-by: Lachezar Lechev <[email protected]>
Signed-off-by: Lachezar Lechev <[email protected]>
Signed-off-by: Lachezar Lechev <[email protected]>
Signed-off-by: Lachezar Lechev <[email protected]>
Signed-off-by: Lachezar Lechev <[email protected]>
Signed-off-by: Lachezar Lechev <[email protected]>
Signed-off-by: Lachezar Lechev <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general, pretty good PR! Thank you for your contribution.
There are a few minor things I found and the use of enums over bool/char would be ideal.
We should make a good examples with one of the other sentences to follow when developing a new one. Not all impls are in sync let alone the documentation so we should have a better guidance and an example to follow
src/sentences/apa.rs
Outdated
// Field Number: | ||
|
||
// 1. Status, BOOLEAN, V = Loran-C Blink or SNR warning A = general warning flag or other navigation systems when a reliable fix is not available | ||
// 2. Status, BOOLEAN, V = Loran-C Cycle Lock warning flag A = OK or not used | ||
// 3. Cross Track Error Magnitude | ||
// 4. Status, BOOLEAN, L = Left or R = Right | ||
// 5. Cross Track Units, N = Nautical miles or K = Kilometers | ||
// 6. Status, BOOLEAN, A = Arrival Circle Entered, V = Not Entered | ||
// 7. Status, BOOLEAN, A = Perpendicular passed at waypoint, V = Not Passed | ||
// 8. Bearing origin to destination | ||
// 9. M = Magnetic, T = True | ||
// 10. Destination Waypoint ID | ||
// 11. Checksum | ||
// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Field Number: | |
// 1. Status, BOOLEAN, V = Loran-C Blink or SNR warning A = general warning flag or other navigation systems when a reliable fix is not available | |
// 2. Status, BOOLEAN, V = Loran-C Cycle Lock warning flag A = OK or not used | |
// 3. Cross Track Error Magnitude | |
// 4. Status, BOOLEAN, L = Left or R = Right | |
// 5. Cross Track Units, N = Nautical miles or K = Kilometers | |
// 6. Status, BOOLEAN, A = Arrival Circle Entered, V = Not Entered | |
// 7. Status, BOOLEAN, A = Perpendicular passed at waypoint, V = Not Passed | |
// 8. Bearing origin to destination | |
// 9. M = Magnetic, T = True | |
// 10. Destination Waypoint ID | |
// 11. Checksum | |
// | |
/// Field Number: | |
/// | |
/// 1. Status, BOOLEAN, V = Loran-C Blink or SNR warning A = general warning flag or other navigation systems when a reliable fix is not available | |
/// 2. Status, BOOLEAN, V = Loran-C Cycle Lock warning flag A = OK or not used | |
/// 3. Cross Track Error Magnitude | |
/// 4. Status, BOOLEAN, L = Left or R = Right | |
/// 5. Cross Track Units, N = Nautical miles or K = Kilometers | |
/// 6. Status, BOOLEAN, A = Arrival Circle Entered, V = Not Entered | |
/// 7. Status, BOOLEAN, A = Perpendicular passed at waypoint, V = Not Passed | |
/// 8. Bearing origin to destination | |
/// 9. M = Magnetic, T = True | |
/// 10. Destination Waypoint ID | |
/// 11. Checksum | |
/// |
@@ -26,7 +26,7 @@ use crate::{parse::NmeaSentence, sentences::utils::array_string, Error, Sentence | |||
/// 1. Status, BOOLEAN, A = Arrival circle entered, V = not passed | |||
/// 2. Status, BOOLEAN, A = perpendicular passed at waypoint, V = not passed | |||
/// 3. Arrival circle radius | |||
/// 4. Units of radiuos, nautical miles |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
src/sentences/apa.rs
Outdated
// 6. Status, BOOLEAN, A = Arrival Circle Entered, V = Not Entered | ||
// 7. Status, BOOLEAN, A = Perpendicular passed at waypoint, V = Not Passed | ||
// 8. Bearing origin to destination | ||
// 9. M = Magnetic, T = True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same goes for Magnetic/True. Seems a better fit for an enum instead.
Signed-off-by: Lachezar Lechev <[email protected]>
Signed-off-by: Lachezar Lechev <[email protected]>
|
Signed-off-by: Lachezar Lechev <[email protected]>
chore: Cargo - upgrade dependencies
Co-authored-by: Lachezar Lechev <[email protected]>
Co-authored-by: Lachezar Lechev <[email protected]>
Co-authored-by: Lachezar Lechev <[email protected]>
Co-authored-by: Lachezar Lechev <[email protected]>
Co-authored-by: Lachezar Lechev <[email protected]>
Co-authored-by: Lachezar Lechev <[email protected]>
@elpiel Updated this PR with the fixes and suggestions! Let me know what you think. Thanks so much! |
No description provided.