add tc and tm module

This commit is contained in:
Robin Müller 2022-06-14 23:26:21 +02:00
parent 728796472d
commit f07a1bbb62
No known key found for this signature in database
GPG Key ID: BE6480244DFE612C
4 changed files with 4 additions and 2 deletions

View File

@ -25,7 +25,7 @@ fn main() {
some_bool: true as u8,
some_u16: 0x42,
some_i32: -200,
some_float: 7.7 as f32
some_float: 7.7_f32
};
let out = to_stdvec(&pc_test).unwrap();
@ -35,7 +35,7 @@ fn main() {
some_bool: true as u8,
some_u16: U16::from(0x42),
some_i32: I32::from(-200),
some_float: (7.7 as f32).to_ne_bytes()
some_float: 7.7_f32.to_ne_bytes()
};
let mut slice = [0; 11];
sample_hk.write_to(slice.as_mut_slice());

View File

@ -1,5 +1,7 @@
//! # Space related components including CCSDS and ECSS packet standards
use serde::{Deserialize, Serialize};
pub mod tc;
pub mod tm;
#[derive(Serialize, Deserialize, Debug, PartialEq, Copy, Clone)]
pub enum PacketType {

0
src/sp/tc.rs Normal file
View File

0
src/sp/tm.rs Normal file
View File