Fixed CCSDS parsing

+ Using bitvec now for parsing binary data
+ Fixed issues with how some data was handled across byte boundaries
+ Updated CCSDS def
+ Added test to verify good ccsds parsing
+ clippy + fmt
This commit is contained in:
joeyahines committed 2022-04-17 10:19:44 -06:00
1 parent 415a9c6ee1
commit d956c111d8
9 files changed
+289 -74

No files matched your search

+2 -7
View File
@@ -33,14 +33,9 @@ fn init() -> Result<(Vec<u8>, Format), FormatyError> {
let config = FormatConfig::new(&args.config)?;
let format = config
.formats
.iter()
.find(|f| f.name == args.format)
.ok_or_else(|| FormatyError::FormatNotFound(args.format.to_string()))?
.clone();
let format = config.get_format(&args.format)?;
let data = parse_bytes_from_input_arg(args.data).unwrap();
let data = parse_bytes_from_input_arg(args.data)?;
Ok((data, format))
}