rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
servo_str.h File Reference

The automatic servo test's words by id: every string the run writes or the SERVO screen shows about it is an entry of one table (UI_SERVO_TEXT in shared/text/include/ui_text.def). A caller that names an entry and nothing else of the run includes this alone, as ui_text.h does; the engine is servo_test.h. More...

Go to the source code of this file.

Enumerations

enum  servo_str_t {
  SERVO_STR_PHASE_NONE = 0 , SERVO_STR_PHASE_SET , SERVO_STR_PHASE_SETTLE , SERVO_STR_PHASE_IDLE ,
  SERVO_STR_PHASE_MOVE , SERVO_STR_PHASE_HOLD , SERVO_STR_PASS , SERVO_STR_FAIL ,
  SERVO_STR_ABORTED , SERVO_STR_NOT_MEASURABLE , SERVO_STR_TEST_STEP , SERVO_STR_TEST_BROWNOUT ,
  SERVO_STR_AB_NONE , SERVO_STR_AB_STOP , SERVO_STR_AB_DISARMED , SERVO_STR_AB_LINK ,
  SERVO_STR_AB_LEFT , SERVO_STR_AB_OPERATOR , SERVO_STR_AB_SETTINGS , SERVO_STR_AB_TOUCH ,
  SERVO_STR_AB_SUPPLY_LOST , SERVO_STR_AB_TRIPPED , SERVO_STR_AB_SUPPLY_OFF , SERVO_STR_AB_STALE ,
  SERVO_STR_AB_NOT_ON , SERVO_STR_AB_SET_NOT_TAKEN , SERVO_STR_AB_CAP , SERVO_STR_AB_STALL ,
  SERVO_STR_AB_CC , SERVO_STR_AB_WIN_STALE , SERVO_STR_AB_INA_RESET , SERVO_STR_AB_INA_SILENT ,
  SERVO_STR_AB_INA_NO_WINDOW , SERVO_STR_AB_INA_SETUP , SERVO_STR_AB_INA_METER , SERVO_STR_START_OK ,
  SERVO_STR_START_NO_STEPS , SERVO_STR_START_ABOVE_CAP , SERVO_STR_START_NO_SUPPLY , SERVO_STR_START_BAD_ENDS ,
  SERVO_STR_START_NOT_ARMED , SERVO_STR_START_BUSY , SERVO_STR_START_TEST_RUNS , SERVO_STR_START_LIMIT_RUNS ,
  SERVO_STR_R_TITLE , SERVO_STR_R_RESULT , SERVO_STR_R_RESULT_WHY , SERVO_STR_R_RESULT_UNSEEN ,
  SERVO_STR_R_RESULT_BO_UNSEEN , SERVO_STR_R_DEVICE , SERVO_STR_R_FIRMWARE , SERVO_STR_R_LOG ,
  SERVO_STR_R_SUPPLY , SERVO_STR_R_SUPPLY_MODEL , SERVO_STR_R_READINGS , SERVO_STR_R_READINGS_FEW ,
  SERVO_STR_R_SKIPPED , SERVO_STR_R_RESOLUTION , SERVO_STR_R_RESOLUTION_UNKNOWN , SERVO_STR_R_LAG ,
  SERVO_STR_R_REPEATS , SERVO_STR_R_UPPER_BOUND , SERVO_STR_R_DURATION , SERVO_STR_R_ROWS ,
  SERVO_STR_R_SETTINGS , SERVO_STR_R_TYPE , SERVO_STR_R_RATE , SERVO_STR_R_DANGER ,
  SERVO_STR_R_DANGER_NONE , SERVO_STR_R_HV , SERVO_STR_R_HV_OFF , SERVO_STR_R_HV_ON_RUN ,
  SERVO_STR_R_HV_ON_NONE , SERVO_STR_R_ENDS , SERVO_STR_R_STEPS , SERVO_STR_R_STEPS_NONE ,
  SERVO_STR_R_BROWNOUT , SERVO_STR_R_BROWNOUT_NOT_RUN , SERVO_STR_R_I_LIMIT , SERVO_STR_R_TIMING ,
  SERVO_STR_R_LEN_MOVES , SERVO_STR_R_LEN_TIME , SERVO_STR_R_LIMITS , SERVO_STR_R_ON ,
  SERVO_STR_R_OFF , SERVO_STR_R_PER_STEP , SERVO_STR_R_COLUMNS , SERVO_STR_R_COLUMNS_2 ,
  SERVO_STR_R_STEP_NOT_RUN , SERVO_STR_R_CUT_SHORT , SERVO_STR_R_NO_STEP , SERVO_STR_R_LATE ,
  SERVO_STR_R_UNSEEN , SERVO_STR_R_THRESHOLD , SERVO_STR_R_ARRIVAL , SERVO_STR_R_BO_HEAD ,
  SERVO_STR_R_BO_NOT_RUN , SERVO_STR_R_BO_NOT_REACHED , SERVO_STR_R_BO_STOPPED , SERVO_STR_R_BO_ALL ,
  SERVO_STR_R_BO_NONE , SERVO_STR_R_BO_RULE , SERVO_STR_R_LIM_HEAD , SERVO_STR_R_LIM_IDLE ,
  SERVO_STR_R_LIM_HOLD , SERVO_STR_R_LIM_TRAVEL , SERVO_STR_R_LIM_TRAVEL_OFF , SERVO_STR_R_LIM_TRAVEL_BOUND ,
  SERVO_STR_R_LIM_TRAVEL_NONE , SERVO_STR_R_LIM_STALL , SERVO_STR_R_LIM_LATE , SERVO_STR_R_LIM_UNSEEN ,
  SERVO_STR_R_LIM_BO_SEEN , SERVO_STR_R_LIM_BO_UNSEEN , SERVO_STR_R_NOT_CHECKED , SERVO_STR_R_NOT_MEASURED ,
  SERVO_STR_R_UNM_HEAD , SERVO_STR_R_UNM_POSITION , SERVO_STR_R_UNM_PEAKS , SERVO_STR_R_UNM_PATH ,
  SERVO_STR_R_ENC_DEVICE , SERVO_STR_R_ENC_HEAD , SERVO_STR_R_ENC_COLUMNS , SERVO_STR_R_ENC_CMD ,
  SERVO_STR_R_ENC_END , SERVO_STR_R_ENC_SETTLED , SERVO_STR_R_ENC_TRAVEL , SERVO_STR_R_ENC_UNMOVED ,
  SERVO_STR_R_ENC_LATE , SERVO_STR_R_ENC_DEADBAND , SERVO_STR_R_ENC_NONE , SERVO_STR_R_ENC_NO_MAGNET ,
  SERVO_STR_R_ENC_FIELD , SERVO_STR_R_UNM_POSITION_ENC , SERVO_STR_R_LOG_WIN , SERVO_STR_R_SUPPLY_PDMINI ,
  SERVO_STR_R_CURRENT , SERVO_STR_R_CURRENT_INA , SERVO_STR_R_VOLTAGE , SERVO_STR_R_VOLTAGE_INA ,
  SERVO_STR_R_SHUNT , SERVO_STR_R_INA_UNUSED , SERVO_STR_R_INA_OLD , SERVO_STR_R_INA_NOT_HELD ,
  SERVO_STR_R_INA_SILENT , SERVO_STR_R_INA_NO_WINDOW , SERVO_STR_R_INA_RESET , SERVO_STR_R_INA_SETTLING ,
  SERVO_STR_R_INA_MODEL , SERVO_STR_R_READINGS_WIN , SERVO_STR_R_SKIPPED_WIN , SERVO_STR_R_RESOLUTION_WIN ,
  SERVO_STR_R_CLIPPED , SERVO_STR_R_CC , SERVO_STR_R_NEGATIVE , SERVO_STR_R_LIM_STALL_LIMIT ,
  SERVO_STR_R_LIM_STALL_RANGE , SERVO_STR_R_UNM_POSITION_INA , SERVO_STR_R_UNM_PEAKS_INA , SERVO_STR_R_METER_MODEL ,
  SERVO_STR_L_FOUND , SERVO_STR_L_FREE , SERVO_STR_L_PH_SEARCH , SERVO_STR_L_PH_SAFE ,
  SERVO_STR_L_PH_CONNECT , SERVO_STR_L_PH_WRITE , SERVO_STR_L_PH_LEAVE , SERVO_STR_L_PH_ARM ,
  SERVO_STR_L_PH_PROBE , SERVO_STR_L_PH_CHECK , SERVO_STR_L_WHY_HARD , SERVO_STR_L_WHY_CLIPPED ,
  SERVO_STR_L_WHY_STALL , SERVO_STR_L_WHY_SEARCH_LONG , SERVO_STR_L_WHY_SUPPLY , SERVO_STR_L_WHY_BENCH ,
  SERVO_STR_L_WHY_NOT_KST , SERVO_STR_L_WHY_PROG , SERVO_STR_L_WHY_WRITE , SERVO_STR_L_WHY_OTHER ,
  SERVO_STR_L_WHY_MAPPING , SERVO_STR_L_WHY_SMALLEST , SERVO_STR_L_WHY_CAP , SERVO_STR_L_WHY_STILL ,
  SERVO_STR_L_WHY_NO_VOLTAGE , SERVO_STR_L_WHY_NO_STOP , SERVO_STR_L_WHY_BEFORE_NEUTRAL , SERVO_STR_L_WHY_NEUTRAL ,
  SERVO_STR_L_WHY_RANGE , SERVO_STR_L_R_TITLE , SERVO_STR_L_R_MODE_SEARCH , SERVO_STR_L_R_MODE_PROGRAM ,
  SERVO_STR_L_R_MODE_PULSES , SERVO_STR_L_R_MODE_SEARCH_NONE , SERVO_STR_L_R_MODE_PROGRAM_NONE , SERVO_STR_L_R_MODE_PULSES_NONE ,
  SERVO_STR_L_R_MODE_PULSES_SET_NONE , SERVO_STR_L_R_SEARCH , SERVO_STR_L_R_OUTPUT , SERVO_STR_L_R_PULSE ,
  SERVO_STR_L_R_METER , SERVO_STR_L_R_RULE , SERVO_STR_L_R_PROTECT , SERVO_STR_L_R_ENDS_HEAD ,
  SERVO_STR_L_R_CHECK_HEAD , SERVO_STR_L_R_LOW , SERVO_STR_L_R_HIGH , SERVO_STR_L_R_END_BOUND ,
  SERVO_STR_L_R_END_FREE , SERVO_STR_L_R_END_NOT_RUN , SERVO_STR_L_R_ANGLE , SERVO_STR_L_R_ANGLE_NONE ,
  SERVO_STR_L_R_ENC_OFF , SERVO_STR_L_R_PROG_HEAD , SERVO_STR_L_R_PROG_OFF , SERVO_STR_L_R_PROG_FREE ,
  SERVO_STR_L_R_PROG_NO_SERVO , SERVO_STR_L_R_SERVO , SERVO_STR_L_R_PULSES , SERVO_STR_L_R_PULSE_SET ,
  SERVO_STR_L_R_RANGE , SERVO_STR_L_R_LEFT , SERVO_STR_L_R_RIGHT , SERVO_STR_L_R_REG ,
  SERVO_STR_L_R_REG_LIN , SERVO_STR_L_R_SIDE_LO , SERVO_STR_L_R_SIDE_HI , SERVO_STR_L_R_SIDE_UNKNOWN ,
  SERVO_STR_L_R_METHOD , SERVO_STR_L_R_WRITES , SERVO_STR_L_R_BACKUP , SERVO_STR_L_R_BACKUP_MEM ,
  SERVO_STR_L_R_RESTORE , SERVO_STR_L_R_UNIT , SERVO_STR_L_R_BENCH , SERVO_STR_COUNT
}

Functions

const char * servo_str (servo_str_t id)
const char * servo_str_in (const char *const *table, servo_str_t id)

Detailed Description

The automatic servo test's words by id: every string the run writes or the SERVO screen shows about it is an entry of one table (UI_SERVO_TEXT in shared/text/include/ui_text.def). A caller that names an entry and nothing else of the run includes this alone, as ui_text.h does; the engine is servo_test.h.

SPDX-License-Identifier: MIT

Enumeration Type Documentation

◆ servo_str_t

Every word the run puts in its files and on the SERVO screen, in one table, so another language is another table. The SERVO_STR_R_ entries are the report's: some are printf formats, and a translation converts the same arguments in the same order.

Function Documentation

◆ servo_str()

const char * servo_str ( servo_str_t id)

The English text of id; "" for one out of range.

◆ servo_str_in()

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.