|
rcbench
Servo and ESC test bench: panel, IOmcu and shared C
|
The automatic servo test's words: the CSV header, the phase and abort names, and the line formats of the TXT report (servo_report.c). More...
Macros | |
| #define | CSV_BASE |
| #define | CSV_ENC ";angle (deg);travel angle (ms)" |
| #define | CSV_METER |
Enumerations | |
| enum | { k_str_entries = 0 } |
| The count of UI_SERVO_TEXT entries in ui_text.def. | |
Functions | |
| const char * | servo_str_in (const char *const *table, servo_str_t id) |
| const char * | servo_str (servo_str_t id) |
| servo_str_t | servo_test_phase_str (servo_test_phase_t ph) |
| The entries the names below come from, for a caller with its own table. | |
| servo_str_t | servo_test_abort_str (servo_test_abort_t why) |
| Table entry for an abort reason. | |
| servo_str_t | servo_test_verdict_str (servo_test_verdict_t v) |
| Table entry for a verdict. | |
| static servo_str_t | servo_test_start_str (servo_test_start_t why) |
| const char * | servo_test_phase_name (servo_test_phase_t ph) |
| English name of a phase. | |
| const char * | servo_test_abort_name (servo_test_abort_t why) |
| English name of an abort reason. | |
| const char * | servo_test_verdict_name (servo_test_verdict_t v) |
| English name of a verdict. | |
| const char * | servo_test_start_name (servo_test_start_t why) |
| English name of a start refusal. | |
| const char * | servo_test_csv_header (void) |
| The CSV's header row: the 13 columns of every run, then the meter's six – meter, window, current max, current min, voltage min, clipped. | |
| const char * | servo_test_csv_header_enc (void) |
| And with the encoder's two columns, angle_deg and travel_angle_ms, between the two groups. | |
| const char * | servo_test_meter_word (uint8_t kind) |
| The word a row's meter column carries: INA3221, PDMINI or MODEL. | |
Variables | |
| static const char *const | k_str [SERVO_STR_COUNT] |
| The servo test's words in English, from ui_text.def. | |
The automatic servo test's words: the CSV header, the phase and abort names, and the line formats of the TXT report (servo_report.c).
Every string the run writes or the SERVO screen shows about it is an entry of ui_text.def (shared/text), with its English and its German; k_str is the English column, and ui_text.c makes the other languages' tables of the same entries. The report is written in the language of the table the run was started with, and the CSV always in English, because tools read it by its words. A report is UTF-8, as the table's strings are.
SPDX-License-Identifier: MIT
| #define CSV_BASE |
| #define CSV_METER |
| const char * servo_str | ( | servo_str_t | id | ) |
The English text of id; "" for one out of range.
| const char * servo_str_in | ( | const char *const * | table, |
| servo_str_t | id ) |
id from table, or the English where table is NULL or holds none; "" for one out of range.
| const char * servo_test_abort_name | ( | servo_test_abort_t | why | ) |
English name of an abort reason.
| why | Abort reason to name. |
| servo_str_t servo_test_abort_str | ( | servo_test_abort_t | why | ) |
Table entry for an abort reason.
| why | Abort reason to name. |
| const char * servo_test_csv_header | ( | void | ) |
The CSV's header row: the 13 columns of every run, then the meter's six – meter, window, current max, current min, voltage min, clipped.
| const char * servo_test_csv_header_enc | ( | void | ) |
And with the encoder's two columns, angle_deg and travel_angle_ms, between the two groups.
| const char * servo_test_meter_word | ( | uint8_t | kind | ) |
The word a row's meter column carries: INA3221, PDMINI or MODEL.
| kind | Meter kind, servo_test_meter_kind_t. |
| const char * servo_test_phase_name | ( | servo_test_phase_t | ph | ) |
English name of a phase.
| ph | Phase to name. |
| servo_str_t servo_test_phase_str | ( | servo_test_phase_t | ph | ) |
The entries the names below come from, for a caller with its own table.
| ph | Phase to name. |
| const char * servo_test_start_name | ( | servo_test_start_t | why | ) |
English name of a start refusal.
| why | Refusal to name. |
| const char * servo_test_verdict_name | ( | servo_test_verdict_t | v | ) |
English name of a verdict.
| v | Verdict to name. |
| servo_str_t servo_test_verdict_str | ( | servo_test_verdict_t | v | ) |
Table entry for a verdict.
| v | Verdict to name. |
|
static |
The servo test's words in English, from ui_text.def.