Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate Odroid boot from code #41

Open
1 of 5 tasks
OmerShubi opened this issue Oct 3, 2019 · 0 comments
Open
1 of 5 tasks

Separate Odroid boot from code #41

OmerShubi opened this issue Oct 3, 2019 · 0 comments

Comments

@OmerShubi
Copy link
Collaborator

OmerShubi commented Oct 3, 2019

Currently:
the only storage for OS, data, code is MicroSD

Planned:
OS & Code on eMMC Storage
captured images on external SSD.

  • Boot from eMMC

  • Mount external SSD

  • Fix paths in code:

    def initPaths(HOME_PATH=None):
    """Delayed settings of paths. This allows settings path locally (on pc) or camera."""
    if HOME_PATH is None:
    HOME_PATH = os.path.expanduser('~')
    global CAPTURE_PATH
    global GENERAL_SETTINGS_PATH
    global CAPTURE_SETTINGS_PATH
    global DEFAULT_LOG_FOLDER
    global MASK_PATH
    global INTRINSIC_SETTINGS_PATH
    global EXTRINSIC_SETTINGS_PATH
    global SUN_POSITIONS_PATH
    global DARK_IMAGES_PATH
    global UPLOAD_CMD
    global VIGNETTING_SETTINGS_PATH
    global RADIOMETRIC_SETTINGS_PATH
    CAPTURE_PATH = os.path.join(HOME_PATH, 'captured_images')
    GENERAL_SETTINGS_PATH = os.path.join(HOME_PATH, '.camera_data.json')
    CAPTURE_SETTINGS_PATH = os.path.join(HOME_PATH, '.capture_data.json')
    VIGNETTING_SETTINGS_PATH = os.path.join(HOME_PATH, VIGNETTING_SETTINGS_FILENAME)
    RADIOMETRIC_SETTINGS_PATH = os.path.join(HOME_PATH, RADIOMETRIC_SETTINGS_FILENAME)
    DEFAULT_LOG_FOLDER = os.path.join(HOME_PATH, 'camera_logs')
    MASK_PATH = os.path.join(HOME_PATH, 'mask_img.mat')
    #
    # Calibration parameters
    #
    INTRINSIC_SETTINGS_PATH = os.path.join(HOME_PATH, INTRINSIC_SETTINGS_FILENAME)
    EXTRINSIC_SETTINGS_PATH = os.path.join(HOME_PATH, EXTRINSIC_SETTINGS_FILENAME)
    SUN_POSITIONS_PATH = os.path.join(HOME_PATH, 'sun_positions')
    DARK_IMAGES_PATH = os.path.join(HOME_PATH, 'dark_images')
    UPLOAD_CMD = os.path.join(HOME_PATH, ".local/bin/dropbox_uploader.sh -k upload {capture_path} {upload_path}")

  • Find and fix any other relevant paths in code

  • Add option to choose between external SSD Storage for captured images or internal. Should probably be configured in setup_camera.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants