Skip to content

Commit

Permalink
tlemのis\restrictedも追加
Browse files Browse the repository at this point in the history
  • Loading branch information
shunsuke-shimomura committed Jul 16, 2024
1 parent 9fa2f04 commit 3587a4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gaia-ccsds-c2a/src/access/tlm/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub struct Metadata {
pub component_name: String,
pub telemetry_name: String,
pub tlm_id: u8,
pub is_restriced: bool,
pub is_restricted: bool,
}

#[derive(Debug, Clone)]
Expand Down Expand Up @@ -111,7 +111,7 @@ impl<'a> Iterator for TelemetryIter<'a> {
component_name: self.component_name.to_string(),
telemetry_name: telemetry.name.to_string(),
tlm_id: telemetry.metadata.packet_id,
is_restriced: telemetry.metadata.is_restricted,
is_restricted: telemetry.metadata.is_restricted,
};
let fields = Box::new(iter_fields(&telemetry.entries).filter_map(|(obs, field)| {
build_bit_range(&field.extraction_info).map(|bit_range| (obs, field, bit_range))
Expand Down
2 changes: 2 additions & 0 deletions tmtc-c2a/src/registry/tlm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ use crate::{
pub struct FatTelemetrySchema {
component: String,
telemetry: String,
is_restricted: bool,
pub schema: TelemetrySchema,
}

Expand Down Expand Up @@ -214,6 +215,7 @@ impl Registry {
FatTelemetrySchema {
component: metadata.component_name,
telemetry: metadata.telemetry_name,
is_restricted: metadata.is_restricted,
schema,
},
);
Expand Down

0 comments on commit 3587a4e

Please sign in to comment.