Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoMario109 committed Dec 16, 2024
1 parent e883dfb commit 12ef6dd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
18 changes: 17 additions & 1 deletion core/services/ardupilot_manager/config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
import appdirs
from pathlib import Path

# This file is used to define general configurations for the app

SERVICE_NAME = "autopilot-manager"
SERVICE_NAME = "ardupilot-manager"

# Paths

SETTINGS_PATH = Path(appdirs.user_config_dir(SERVICE_NAME))

LOG_FOLDER = Path.joinpath(SETTINGS_PATH, "logs")
FIRMWARE_FOLDER = Path.joinpath(SETTINGS_PATH, "firmware")
USER_FIRMWARE_FOLDER = Path("/usr/blueos/userdata/firmware")

APP_FOLDERS = [SETTINGS_PATH, FIRMWARE_FOLDER, LOG_FOLDER, USER_FIRMWARE_FOLDER]

blueos_files_folder = Path.joinpath(Path.home(), "blueos-files")
defaults_folder = Path.joinpath(blueos_files_folder, "ardupilot-manager/default")

__all__ = ["SERVICE_NAME"]
1 change: 1 addition & 0 deletions core/services/ardupilot_manager/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class Settings:

blueos_files_folder = Path.joinpath(Path.home(), "blueos-files")
defaults_folder = Path.joinpath(blueos_files_folder, "ardupilot-manager/default")

sitl_frame = SITLFrame.UNDEFINED
preferred_router: Optional[str] = None

Expand Down

0 comments on commit 12ef6dd

Please sign in to comment.