Converts a 2D array of HRD (High Resolution Data) samples into a CSV-formatted string.
A CSV string with a header row and one row per sample. Returns an empty string if no samples are provided.
const samples = [ [12345, 1.23, 100.5], [12346, 1.20, 101.2]];const csv = convertHrdSamplesToCsv(samples);// "HRD Velocity (Q15),HRD Torque [‰],HRD Velocity [RPM]\n12345,1.23,100.5\n12346,1.20,101.2\n"
"HRD Velocity (Q15),HRD Torque [‰],HRD Velocity [RPM]"
A two-dimensional array where each inner array represents a single sample in the format [velocityQ15, torque, velocity].
[velocityQ15, torque, velocity]
Generated using TypeDoc
Converts a 2D array of HRD (High Resolution Data) samples into a CSV-formatted string.
Returns
A CSV string with a header row and one row per sample. Returns an empty string if no samples are provided.
Example
Remarks
"HRD Velocity (Q15),HRD Torque [‰],HRD Velocity [RPM]".