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

+1 -2
View File
@@ -5,11 +5,11 @@ use std::error::Error;
use std::fmt::{Display, Formatter};
#[derive(Debug)]
#[allow(clippy::enum_variant_names)]
pub enum FormatyError {
ByteArrayParseError(ByteArrayParseErr),
FormatError(FormatError),
FormatConfigError(FormatConfigError),
FormatNotFound(String),
}
impl From<ByteArrayParseErr> for FormatyError {
@@ -36,7 +36,6 @@ impl Display for FormatyError {
FormatyError::ByteArrayParseError(e) => e.to_string(),
FormatyError::FormatError(e) => e.to_string(),
FormatyError::FormatConfigError(e) => e.to_string(),
FormatyError::FormatNotFound(err_msg) => format!("'{}' config not found.", err_msg),
};
write!(f, "{}", err_msg)