Function parsePlantModelCsv

  • Parses a CSV representation of a plant model into a PlantModel object.

    The CSV is expected to have up to three lines:

    1. Numerator coefficients (comma-separated)
    2. Denominator coefficients (comma-separated), with the last two values representing friction and inertia
    3. Optional chirp signal parameters: startFrequency, endFrequency, torqueAmplitude, duration, signalType

    If content is null, undefined, or empty, a PlantModel with default values is returned.

    Returns

    A PlantModel object with the parsed numerator, denominator, friction, inertia, and optional chirp signal parameters (startFrequency, endFrequency, torqueAmplitude, durationSeconds, signalType).

    Parameters

    • content: undefined | null | string | Uint8Array

      The CSV content as a string or Uint8Array. Can be null or undefined.

    Returns PlantModel

Generated using TypeDoc