New CCSDS & ECSS Components #7

Merged
muellerr merged 17 commits from workspace-spacepackets into main 2022-06-16 15:48:04 +02:00
4 changed files with 4 additions and 2 deletions
Showing only changes of commit f07a1bbb62 - Show all commits

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