From 33e6a26d228b96c3bd26c407e4e2f488fcd295e2 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Mon, 6 Feb 2023 00:24:09 +0100 Subject: [PATCH] completed docs --- satrs-core/src/pus/scheduling.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/satrs-core/src/pus/scheduling.rs b/satrs-core/src/pus/scheduling.rs index ffe595b..22f9160 100644 --- a/satrs-core/src/pus/scheduling.rs +++ b/satrs-core/src/pus/scheduling.rs @@ -149,6 +149,8 @@ impl PusScheduler { self.enabled = true; } + /// A disabled scheduler should still delete commands where the execution time has been reached + /// but should not release them to be executed. pub fn disable(&mut self) { self.enabled = false; } @@ -182,6 +184,8 @@ impl PusScheduler { &self.current_time } + /// Insert a telecommand which was already unwrapped from the outer Service 11 packet and stored + /// inside the telecommand packet pool. pub fn insert_unwrapped_and_stored_tc( &mut self, time_stamp: UnixTimestamp, @@ -205,6 +209,8 @@ impl PusScheduler { Ok(()) } + /// Insert a telecommand which was already unwrapped from the outer Service 11 packet but still + /// needs to be stored inside the telecommand pool. pub fn insert_unwrapped_tc( &mut self, time_stamp: UnixTimestamp,