#include "sweep_plan.hpp"

#include <stdexcept>

namespace radar::acq {

auto build_sweep_plan(const config::RunConfig& config) -> SweepPlan {
    // RunConfig is already validated in common_cpp/config. Keep this function
    // focused on plan construction only.
    if (config.run_combos.empty()) {
        throw std::runtime_error("run.combos must not be empty");
    }

    SweepPlan plan{};
    plan.ordered_combos = config.run_combos;
    return plan;
}

}  // namespace radar::acq
