6 Commits

Author SHA1 Message Date
fae17c4fcb add doctest to jenkinsfile
Some checks failed
Rust/sat-rs/pipeline/pr-main There was a failure building this commit
2024-05-02 14:39:13 +02:00
6dd29b0599 run doctests as well 2024-05-02 14:38:46 +02:00
b3f1e113a2 use other github actions
Some checks failed
Rust/sat-rs/pipeline/pr-main There was a failure building this commit
2024-05-02 14:32:36 +02:00
d6e9c6faf1 the workflow file needs to be there
All checks were successful
Rust/sat-rs/pipeline/pr-main This commit looks good
2024-05-02 13:57:13 +02:00
6bd9c7f395 add first github CI
Some checks are pending
Rust/sat-rs/pipeline/head Build started...
2024-05-02 13:53:01 +02:00
87ccdcc8c5 prepare next release
Some checks are pending
Rust/sat-rs/pipeline/head Build started...
2024-05-02 13:49:31 +02:00

View File

@ -10,7 +10,7 @@ pub use std_mod::*;
use spacepackets::{
ecss::{tc::IsPusTelecommand, PusPacket},
ByteConversionError,
ByteConversionError, CcsdsPacket,
};
use crate::{queue::GenericTargetedMessagingError, ComponentId};
@ -47,7 +47,7 @@ impl UniqueApidTargetId {
/// This function attempts to build the ID from a PUS telecommand by extracting the APID
/// and the first four bytes of the application data field as the target field.
pub fn from_pus_tc(
tc: &(impl PusPacket + IsPusTelecommand),
tc: &(impl CcsdsPacket + PusPacket + IsPusTelecommand),
) -> Result<Self, ByteConversionError> {
if tc.user_data().len() < 4 {
return Err(ByteConversionError::FromSliceTooSmall {