# OTA Firmware Updater Configuration

ota_updater_node:
  ros__parameters:
    # Gitea repository configuration
    gitea_api_base: https://gitea.vayrette.com/api/v1/repos/seb/saltylab-firmware
    repo_owner: seb
    repo_name: saltylab-firmware

    # Directories
    data_dir: ~/.saltybot-data
    staging_dir: ~/saltybot-ota-staging
    install_dir: ~/saltybot-ros2-install
    versions_file: ~/.saltybot-data/versions.json

    # Safety thresholds
    max_velocity_threshold: 0.05  # m/s - block update if robot moving faster
    build_timeout: 3600           # seconds (1 hour)

    # Update behavior
    auto_restart_services: true
    backup_before_update: true
    keep_backup_days: 7

    # MQTT topics
    ota_command_topic: /saltybot/ota_command
    ota_status_topic: /saltybot/ota_status
    odometry_topic: /odom
