Merge remote-tracking branch 'origin/main' into shell-cmd-executor
This commit is contained in:
@ -9,7 +9,9 @@ use std::path::{Path, PathBuf};
|
||||
|
||||
pub const STOP_FILE_NAME: &str = "stop-experiment";
|
||||
pub const CONFIG_FILE_NAME: &str = "exp278.toml";
|
||||
pub const HOME_FOLDER_EXPERIMENT: &str = "/home/exp278";
|
||||
pub const HOME_FOLDER_EXPERIMENT: &str = "/home/exp278"; // also where IMS-100 images are placed
|
||||
pub const TO_GROUND_FOLDER_EXPERIMENT: &str = "/home/exp278/toGround";
|
||||
pub const TO_GROUND_LP_FOLDER_EXPERIMENT: &str = "/home/exp278/toGroundLP";
|
||||
pub const LOG_FOLDER: &str = "logs";
|
||||
|
||||
pub const OBSW_SERVER_ADDR: Ipv4Addr = Ipv4Addr::UNSPECIFIED;
|
||||
@ -313,3 +315,15 @@ pub mod tasks {
|
||||
pub const STOP_CHECK_FREQUENCY_MS: u64 = 400;
|
||||
pub const STOP_CHECK_FREQUENCY: Duration = Duration::from_millis(STOP_CHECK_FREQUENCY_MS);
|
||||
}
|
||||
|
||||
pub fn create_low_priority_ground_dir() {
|
||||
log::info!("creating low priority to ground directory");
|
||||
if !Path::new(TO_GROUND_LP_FOLDER_EXPERIMENT).exists()
|
||||
&& std::fs::create_dir_all(TO_GROUND_LP_FOLDER_EXPERIMENT).is_err()
|
||||
{
|
||||
log::error!(
|
||||
"Failed to create low priority to ground directory '{}'",
|
||||
TO_GROUND_LP_FOLDER_EXPERIMENT
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user