Parses a CSV representation of a plant model into a PlantModel object.
The CSV is expected to have up to three lines:
Numerator coefficients (comma-separated)
Denominator coefficients (comma-separated), with the last two values representing friction and inertia
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.
Parses a CSV representation of a plant model into a
PlantModelobject.The CSV is expected to have up to three lines:
If
contentis null, undefined, or empty, aPlantModelwith default values is returned.Returns
A
PlantModelobject with the parsed numerator, denominator, friction, inertia, and optional chirp signal parameters (startFrequency,endFrequency,torqueAmplitude,durationSeconds,signalType).