Добавлено тестировние платы в меню:

- Тест Tx Оптики
- Тест Rx Оптики
- Тест АЦП
This commit is contained in:
2026-08-22 20:03:12 +03:00
parent 49332aa028
commit 3907cbcf77
9 changed files with 357 additions and 115 deletions

View File

@@ -9,12 +9,24 @@ const char *roleName(Role r) {
return i < 3 ? names[i] : "?";
}
const char *testGroupName(TestGroup group) {
static const char *names[] = {"OPTICS", "BOARD"};
const uint8_t i = static_cast<uint8_t>(group);
return i < 2 ? names[i] : "?";
}
const char *testKindName(TestKind kind) {
static const char *names[] = {"OPTICAL", "DRIVER"};
const uint8_t i = static_cast<uint8_t>(kind);
return i < 2 ? names[i] : "?";
}
const char *boardTestName(BoardTest test) {
static const char *names[] = {"ADC", "PWM OUTPUT", "RX INPUT"};
const uint8_t i = static_cast<uint8_t>(test);
return i < 3 ? names[i] : "?";
}
const char *lightCodeName(LightCode code) {
static const char *names[] = {"HH", "HL", "LH", "LL"};
const uint8_t i = static_cast<uint8_t>(code);