using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class VelocitySetpointFromConfig : MonoBehaviour
{
    public ConfigReader Config;
    public VelocitySetpointGeneration VelocitySetpoint;
    
    void Start()
    {
        var VSConfig = Config.configuration.VelocitySetpointGenerator;
        VelocitySetpoint.Bright = VSConfig.Bright;
        VelocitySetpoint.Dark = VSConfig.Dark;
        VelocitySetpoint.Threshold1 = VSConfig.Threshold1;
        VelocitySetpoint.Threshold2 = VSConfig.Threshold2;
        VelocitySetpoint.DistanceCenterToWheel = VSConfig.DistanceCenterToWheel;
        VelocitySetpoint.K = VSConfig.K;
        VelocitySetpoint.ForwardSpeed = VSConfig.ForwardSpeed;
    }

}
