|
rcbench
Servo and ESC test bench: panel, IOmcu and shared C
|
Blackbox field naming: which group a channel belongs to, and what it is measured in. More...
Go to the source code of this file.
Data Structures | |
| struct | log_field_meta_t |
| Group and unit of one channel. More... | |
Functions | |
| log_field_meta_t | log_field_meta (const char *name) |
| Group and unit for a channel name. | |
| int | log_fields_picks (const log_analysis_t *an, int *out, int max) |
| The columns LOGS plots in a file before the operator picks any. | |
Blackbox field naming: which group a channel belongs to, and what it is measured in.
Every pattern is an anchored prefix or an exact name, so a table of prefixes is sufficient and no regular-expression engine is needed on the board.
A CSV (comma-separated values) file exported from a blackbox tool carries exactly these column names, so the grouping applies to it directly; anything else is grouped by unit, which keeps related channels together.
SPDX-License-Identifier: MIT
| log_field_meta_t log_field_meta | ( | const char * | name | ) |
Group and unit for a channel name.
Never NULL; "Other"/"" when unknown.
| name | The channel name. |
| int log_fields_picks | ( | const log_analysis_t * | an, |
| int * | out, | ||
| int | max ) |
The columns LOGS plots in a file before the operator picks any.
In a file with a numeric pulse column, a SERVO run's, its pulse, angle, current and voltage first, each where it is numeric; then, and in any other file, the first numeric columns in file order. Never the time axis, and no column twice.
| an | The file's analysis. |
| out | Receives the column indices. |
| max | The most columns to pick. |
an or out NULL.