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

fix rust lints #1424

Merged
merged 1 commit into from
Aug 16, 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 c/include/libsbp/observation/AlmanacCommonContent.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ typedef struct {
* - bits 0-4: Signal health status. See IS-GPS-200H
* Table 20-VIII. Codes for Health of SV Signal
* Components.
*
* Satellite health status for GLO (see GLO ICD 5.1 table 5.1 for details):
* - bit 0: C(n), "unhealthy" flag that is transmitted within
* non-immediate data and indicates overall constellation status
Expand Down
1 change: 1 addition & 0 deletions c/include/libsbp/observation/AlmanacCommonContentDep.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ typedef struct {
* - bits 0-4: Signal health status. See IS-GPS-200H
* Table 20-VIII. Codes for Health of SV Signal
* Components.
*
* Satellite health status for GLO (see GLO ICD 5.1 table 5.1 for details):
* - bit 0: C(n), "unhealthy" flag that is transmitted within
* non-immediate data and indicates overall constellation status
Expand Down
2 changes: 2 additions & 0 deletions haskell/src/SwiftNav/SBP/Observation.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2731,6 +2731,7 @@ data AlmanacCommonContent = AlmanacCommonContent
-- - bits 0-4: Signal health status. See IS-GPS-200H
-- Table 20-VIII. Codes for Health of SV Signal
-- Components.
--
-- Satellite health status for GLO (see GLO ICD 5.1 table 5.1 for
-- details):
-- - bit 0: C(n), "unhealthy" flag that is transmitted within
Expand Down Expand Up @@ -2781,6 +2782,7 @@ data AlmanacCommonContentDep = AlmanacCommonContentDep
-- - bits 0-4: Signal health status. See IS-GPS-200H
-- Table 20-VIII. Codes for Health of SV Signal
-- Components.
--
-- Satellite health status for GLO (see GLO ICD 5.1 table 5.1 for
-- details):
-- - bit 0: C(n), "unhealthy" flag that is transmitted within
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,13 @@ public class AlmanacCommonContent extends SBPStruct {
/**
* Satellite health status for GPS: - bits 5-7: NAV data health status. See IS-GPS-200H Table
* 20-VII: NAV Data Health Indications. - bits 0-4: Signal health status. See IS-GPS-200H Table
* 20-VIII. Codes for Health of SV Signal Components. Satellite health status for GLO (see GLO
* ICD 5.1 table 5.1 for details): - bit 0: C(n), "unhealthy" flag that is transmitted within
* non-immediate data and indicates overall constellation status at the moment of almanac
* uploading. '0' indicates malfunction of n-satellite. '1' indicates that n-satellite is
* operational. - bit 1: Bn(ln), '0' indicates the satellite is operational and suitable for
* navigation.
* 20-VIII. Codes for Health of SV Signal Components.
*
* <p>Satellite health status for GLO (see GLO ICD 5.1 table 5.1 for details): - bit 0: C(n),
* "unhealthy" flag that is transmitted within non-immediate data and indicates overall
* constellation status at the moment of almanac uploading. '0' indicates malfunction of
* n-satellite. '1' indicates that n-satellite is operational. - bit 1: Bn(ln), '0' indicates
* the satellite is operational and suitable for navigation.
*/
public int health_bits;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,13 @@ public class AlmanacCommonContentDep extends SBPStruct {
/**
* Satellite health status for GPS: - bits 5-7: NAV data health status. See IS-GPS-200H Table
* 20-VII: NAV Data Health Indications. - bits 0-4: Signal health status. See IS-GPS-200H Table
* 20-VIII. Codes for Health of SV Signal Components. Satellite health status for GLO (see GLO
* ICD 5.1 table 5.1 for details): - bit 0: C(n), "unhealthy" flag that is transmitted within
* non-immediate data and indicates overall constellation status at the moment of almanac
* uploading. '0' indicates malfunction of n-satellite. '1' indicates that n-satellite is
* operational. - bit 1: Bn(ln), '0' indicates the satellite is operational and suitable for
* navigation.
* 20-VIII. Codes for Health of SV Signal Components.
*
* <p>Satellite health status for GLO (see GLO ICD 5.1 table 5.1 for details): - bit 0: C(n),
* "unhealthy" flag that is transmitted within non-immediate data and indicates overall
* constellation status at the moment of almanac uploading. '0' indicates malfunction of
* n-satellite. '1' indicates that n-satellite is operational. - bit 1: Bn(ln), '0' indicates
* the satellite is operational and suitable for navigation.
*/
public int health_bits;

Expand Down
4 changes: 2 additions & 2 deletions javascript/sbp/observation.js
Original file line number Diff line number Diff line change
Expand Up @@ -2495,7 +2495,7 @@ MsgGroupDelay.prototype.fieldSpec.push(['isc_l2c', 'writeInt16LE', 2]);
* @field health_bits number (unsigned 8-bit int, 1 byte) Satellite health status for GPS: - bits 5-7: NAV data health status. See IS-
* GPS-200H Table 20-VII: NAV Data Health Indications. - bits 0-4: Signal
* health status. See IS-GPS-200H Table 20-VIII. Codes for Health of SV Signal
* Components. Satellite health status for GLO (see GLO ICD 5.1 table 5.1 for
* Components. Satellite health status for GLO (see GLO ICD 5.1 table 5.1 for
pcrumley marked this conversation as resolved.
Show resolved Hide resolved
* details): - bit 0: C(n), "unhealthy" flag that is transmitted within non-
* immediate data and indicates overall constellation status at the moment of
* almanac uploading. '0' indicates malfunction of n-satellite. '1'
Expand Down Expand Up @@ -2543,7 +2543,7 @@ AlmanacCommonContent.prototype.fieldSpec.push(['health_bits', 'writeUInt8', 1]);
* @field health_bits number (unsigned 8-bit int, 1 byte) Satellite health status for GPS: - bits 5-7: NAV data health status. See IS-
* GPS-200H Table 20-VII: NAV Data Health Indications. - bits 0-4: Signal
* health status. See IS-GPS-200H Table 20-VIII. Codes for Health of SV Signal
* Components. Satellite health status for GLO (see GLO ICD 5.1 table 5.1 for
* Components. Satellite health status for GLO (see GLO ICD 5.1 table 5.1 for
* details): - bit 0: C(n), "unhealthy" flag that is transmitted within non-
* immediate data and indicates overall constellation status at the moment of
* almanac uploading. '0' indicates malfunction of n-satellite. '1'
Expand Down
2 changes: 2 additions & 0 deletions kaitai/ksy/observation.ksy
Original file line number Diff line number Diff line change
Expand Up @@ -2210,6 +2210,7 @@ types:
- bits 0-4: Signal health status. See IS-GPS-200H
Table 20-VIII. Codes for Health of SV Signal
Components.

Satellite health status for GLO (see GLO ICD 5.1 table 5.1 for
details):
- bit 0: C(n), "unhealthy" flag that is transmitted within
Expand Down Expand Up @@ -2251,6 +2252,7 @@ types:
- bits 0-4: Signal health status. See IS-GPS-200H
Table 20-VIII. Codes for Health of SV Signal
Components.

Satellite health status for GLO (see GLO ICD 5.1 table 5.1 for
details):
- bit 0: C(n), "unhealthy" flag that is transmitted within
Expand Down
2 changes: 2 additions & 0 deletions python/sbp/observation.py
Original file line number Diff line number Diff line change
Expand Up @@ -782,6 +782,7 @@ class AlmanacCommonContent(object):
- bits 0-4: Signal health status. See IS-GPS-200H
Table 20-VIII. Codes for Health of SV Signal
Components.

Satellite health status for GLO (see GLO ICD 5.1 table 5.1 for details):
- bit 0: C(n), "unhealthy" flag that is transmitted within
non-immediate data and indicates overall constellation status
Expand Down Expand Up @@ -850,6 +851,7 @@ class AlmanacCommonContentDep(object):
- bits 0-4: Signal health status. See IS-GPS-200H
Table 20-VIII. Codes for Health of SV Signal
Components.

Satellite health status for GLO (see GLO ICD 5.1 table 5.1 for details):
- bit 0: C(n), "unhealthy" flag that is transmitted within
non-immediate data and indicates overall constellation status
Expand Down
8 changes: 4 additions & 4 deletions rust/sbp/src/messages/invalid.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
//! Invalid messages. This message type should be created out of two errors:
//! The SbpMsgParseError, & the CrcError. They correspond to two cases
//! 1) the Frame is invalid because either it either has an invalid CRC or
//! it is missing some metadata like msg_type or similar.
//! 2) The message is invalid because the payload is not large enough and cannot be
//! parsed into a message. This is the SbpMsgParseError.
//! 1. The Frame is invalid because either it either has an invalid CRC or
//! it is missing some metadata like msg_type or similar.
//! 2. The message is invalid because the payload is not large enough and cannot be
//! parsed into a message. This is the SbpMsgParseError.

use bytes::{Buf, BufMut};

Expand Down
2 changes: 2 additions & 0 deletions rust/sbp/src/messages/observation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ pub mod almanac_common_content {
/// - bits 0-4: Signal health status. See IS-GPS-200H
/// Table 20-VIII. Codes for Health of SV Signal
/// Components.
///
/// Satellite health status for GLO (see GLO ICD 5.1 table 5.1 for details):
/// - bit 0: C(n), "unhealthy" flag that is transmitted within
/// non-immediate data and indicates overall constellation status
Expand Down Expand Up @@ -182,6 +183,7 @@ pub mod almanac_common_content_dep {
/// - bits 0-4: Signal health status. See IS-GPS-200H
/// Table 20-VIII. Codes for Health of SV Signal
/// Components.
///
/// Satellite health status for GLO (see GLO ICD 5.1 table 5.1 for details):
/// - bit 0: C(n), "unhealthy" flag that is transmitted within
/// non-immediate data and indicates overall constellation status
Expand Down
2 changes: 2 additions & 0 deletions spec/yaml/swiftnav/sbp/observation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2270,6 +2270,7 @@ definitions:
- bits 0-4: Signal health status. See IS-GPS-200H
Table 20-VIII. Codes for Health of SV Signal
Components.

Satellite health status for GLO (see GLO ICD 5.1 table 5.1 for details):
- bit 0: C(n), "unhealthy" flag that is transmitted within
non-immediate data and indicates overall constellation status
Expand Down Expand Up @@ -2308,6 +2309,7 @@ definitions:
- bits 0-4: Signal health status. See IS-GPS-200H
Table 20-VIII. Codes for Health of SV Signal
Components.

Satellite health status for GLO (see GLO ICD 5.1 table 5.1 for details):
- bit 0: C(n), "unhealthy" flag that is transmitted within
non-immediate data and indicates overall constellation status
Expand Down
Loading