Skip to content

Commit

Permalink
feat: move to full LUA based RGB led
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelcoeffic authored and 3djc committed Aug 6, 2023
1 parent 459242d commit abb1d99
Show file tree
Hide file tree
Showing 29 changed files with 49 additions and 112 deletions.
5 changes: 0 additions & 5 deletions radio/src/boards/generic_stm32/rgb_leds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@ static void rgbLedTimerCb(TimerHandle_t xTimer)
{
(void)xTimer;

if (!isFunctionActive(FUNCTION_RGBLED)) {
for (uint8_t i = 0; i < LED_STRIP_LENGTH; i++) {
rgbSetLedColor(i, 0, 0, 0);
}
}
ws2812_update(&_led_timer);
}

Expand Down
10 changes: 0 additions & 10 deletions radio/src/dataconstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -676,16 +676,6 @@ enum ModelOverridableEnable {
OVERRIDE_ON
};

// List of modes available for RGB leds
enum FunctionRgbLedsParams {
FUNC_RGBLEDS_LUA,
FUNC_RGBLEDS_WHITE,
FUNC_RGBLEDS_BLUE,
FUNC_RGBLEDS_RED,
FUNC_RGBLEDS_YELLOW,
FUNC_RGBLEDS_GREEN,
FUNC_RGBLEDS_MAX SKIP = FUNC_RGBLEDS_GREEN
};
#define SELECTED_THEME_NAME_LEN 26

#endif // _DATACONSTANTS_H_
41 changes: 0 additions & 41 deletions radio/src/functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -412,47 +412,6 @@ void evalFunctions(const CustomFunctionData * functions, CustomFunctionsContext
}
break;

#if defined(LED_STRIP_GPIO)
case FUNC_RGB_LED:
newActiveFunctions |= (1u << FUNCTION_RGBLED);

switch (CFN_PARAM(cfn)) {
case FUNC_RGBLEDS_LUA:
// color values are set using LUA
break;

case FUNC_RGBLEDS_WHITE:
for (uint8_t i = 0; i < LED_STRIP_LENGTH; i++) {
rgbSetLedColor(i, 50, 50, 50);
}
break;

case FUNC_RGBLEDS_BLUE:
for (uint8_t i = 0; i < LED_STRIP_LENGTH; i++) {
rgbSetLedColor(i, 0, 0, 50);
}
break;

case FUNC_RGBLEDS_RED:
for (uint8_t i = 0; i < LED_STRIP_LENGTH; i++) {
rgbSetLedColor(i, 50, 0, 0);
}
break;

case FUNC_RGBLEDS_YELLOW:
for (uint8_t i = 0; i < LED_STRIP_LENGTH; i++) {
rgbSetLedColor(i, 50, 50, 0);
}
break;

case FUNC_RGBLEDS_GREEN:
for (uint8_t i = 0; i < LED_STRIP_LENGTH; i++) {
rgbSetLedColor(i, 0, 50, 0);
}
break;
}
break;
#endif
#if defined(PXX2)
case FUNC_RACING_MODE:
if (isRacingModeEnabled()) {
Expand Down
19 changes: 9 additions & 10 deletions radio/src/gui/128x64/model_special_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ void onCustomFunctionsFileSelectionMenu(const char * result)
if (func == FUNC_PLAY_SCRIPT) {
strcpy(directory, SCRIPTS_FUNCS_PATH);
}
else if (func == FUNC_RGB_LED) {
strcpy(directory, SCRIPTS_RGB_PATH);
}
else {
strcpy(directory, SOUNDS_PATH);
strncpy(directory+SOUNDS_PATH_LNG_OFS, currentLanguagePack->id, 2);
Expand Down Expand Up @@ -305,7 +308,7 @@ void menuSpecialFunctions(event_t event, CustomFunctionData * functions, CustomF
}
#endif
#if defined(SDCARD)
else if (func == FUNC_PLAY_TRACK || func == FUNC_BACKGND_MUSIC || func == FUNC_PLAY_SCRIPT) {
else if (func == FUNC_PLAY_TRACK || func == FUNC_BACKGND_MUSIC || func == FUNC_PLAY_SCRIPT || func==FUNC_RGB_LED) {
if (ZEXIST(cfn->play.name))
lcdDrawSizedText(MODEL_SPECIAL_FUNC_3RD_COLUMN-6, y, cfn->play.name, sizeof(cfn->play.name), attr);
else
Expand All @@ -316,15 +319,18 @@ void menuSpecialFunctions(event_t event, CustomFunctionData * functions, CustomF
if (func==FUNC_PLAY_SCRIPT) {
strcpy(directory, SCRIPTS_FUNCS_PATH);
}
else if (func==FUNC_RGB_LED) {
strcpy(directory, SCRIPTS_RGB_PATH);
}
else {
strcpy(directory, SOUNDS_PATH);
strncpy(directory+SOUNDS_PATH_LNG_OFS, currentLanguagePack->id, 2);
}
if (sdListFiles(directory, func==FUNC_PLAY_SCRIPT ? SCRIPTS_EXT : SOUNDS_EXT, sizeof(cfn->play.name), cfn->play.name)) {
if (sdListFiles(directory, func==FUNC_PLAY_SCRIPT || func==FUNC_RGB_LED ? SCRIPTS_EXT : SOUNDS_EXT, sizeof(cfn->play.name), cfn->play.name)) {
POPUP_MENU_START(onCustomFunctionsFileSelectionMenu);
}
else {
POPUP_WARNING(func==FUNC_PLAY_SCRIPT ? STR_NO_SCRIPTS_ON_SD : STR_NO_SOUNDS_ON_SD);
POPUP_WARNING(func==FUNC_PLAY_SCRIPT || func==FUNC_RGB_LED ? STR_NO_SCRIPTS_ON_SD : STR_NO_SOUNDS_ON_SD);
}
}
break;
Expand Down Expand Up @@ -354,13 +360,6 @@ void menuSpecialFunctions(event_t event, CustomFunctionData * functions, CustomF
INCDEC_ENABLE_CHECK(isSourceAvailable);
}
}
else if (func == FUNC_RGB_LED) {
val_max = FUNC_RGBLEDS_MAX;
lcdDrawTextAtIndex(MODEL_SPECIAL_FUNC_3RD_COLUMN, y, STR_FUNCRGBLEDS, val_displayed, attr);
if (active) {
CFN_PARAM(cfn) = CHECK_INCDEC_PARAM(event, val_displayed, val_min, val_max);
}
}
#if defined(SDCARD)
else if (func == FUNC_LOGS) {
val_min = SD_LOGS_PERIOD_MIN;
Expand Down
26 changes: 22 additions & 4 deletions radio/src/lua/api_general.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2775,9 +2775,9 @@ static int luaGetTrainerStatus(lua_State * L)
return 1;
}

#if defined(LED_STRIP_GPIO) \
#if defined(LED_STRIP_GPIO)
/*luadoc
@function setRgbLedColor(id, rvalue, bvalue, cvalue)
@function setRGBLedColor(id, rvalue, bvalue, cvalue)
@param id: integer identifying a led in the led chain
Expand All @@ -2787,7 +2787,7 @@ static int luaGetTrainerStatus(lua_State * L)
@param bvalue: interger, value of blue channel
@status current Introduced in 2.9
@status current Introduced in 2.10
*/

static int luaSetRgbLedColor(lua_State * L)
Expand All @@ -2801,6 +2801,23 @@ static int luaSetRgbLedColor(lua_State * L)

return 1;
}

/*luadoc
@function applyRGBLedColors()
Apply RGB led colors previously defined by setRGBLedColor
@status current Introduced in 2.10
*/

static int luaApplyRGBLedColors(lua_State * L)
{

rgbLedColorApply();

return 1;
}

#endif

#define KEY_EVENTS(xxx, yyy) \
Expand Down Expand Up @@ -2890,7 +2907,8 @@ LROT_BEGIN(etxlib, NULL, 0)
LROT_FUNCENTRY( getSourceName, luaGetSourceName )
LROT_FUNCENTRY( sources, luaSources )
#if defined(LED_STRIP_GPIO)
LROT_FUNCENTRY(setRgbLedColor, luaSetRgbLedColor )
LROT_FUNCENTRY(setRGBLedColor, luaSetRgbLedColor )
LROT_FUNCENTRY(applyRGBLedColors, luaApplyRGBLedColors )
#endif
LROT_END(etxlib, NULL, 0)

Expand Down
2 changes: 1 addition & 1 deletion radio/src/lua/api_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1366,7 +1366,7 @@ static int luaModelGetCustomFunction(lua_State *L)
lua_newtable(L);
lua_pushtableinteger(L, "switch", CFN_SWITCH(cfn));
lua_pushtableinteger(L, "func", CFN_FUNC(cfn));
if (CFN_FUNC(cfn) == FUNC_PLAY_TRACK || CFN_FUNC(cfn) == FUNC_BACKGND_MUSIC || CFN_FUNC(cfn) == FUNC_PLAY_SCRIPT) {
if (CFN_FUNC(cfn) == FUNC_PLAY_TRACK || CFN_FUNC(cfn) == FUNC_BACKGND_MUSIC || CFN_FUNC(cfn) == FUNC_PLAY_SCRIPT || CFN_FUNC(cfn) == FUNC_RGB_LED) {
lua_pushtablenstring(L, "name", cfn->play.name);
}
else {
Expand Down
13 changes: 13 additions & 0 deletions radio/src/lua/interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,19 @@ static bool luaLoadFunctionScript(uint8_t ref)
return true;
}
}

if (fn -> func == FUNC_RGB_LED && ZEXIST(fn -> play.name)) {
if (luaScriptsCount < MAX_SCRIPTS) {
ScriptInternalData & sid = scriptInternalData[luaScriptsCount++];
sid.reference = ref;
return luaLoadFile(SCRIPTS_RGB_PATH, fn->play.name, sid);
}
else {
POPUP_WARNING(STR_TOO_MANY_LUA_SCRIPTS);
return true;
}
}

return false;
}

Expand Down
3 changes: 0 additions & 3 deletions radio/src/opentx.h
Original file line number Diff line number Diff line change
Expand Up @@ -668,9 +668,6 @@ enum FunctionsActive {
#if defined(HARDWARE_TOUCH)
FUNCTION_DISABLE_TOUCH,
#endif
#if defined(LED_STRIP_GPIO)
FUNCTION_RGBLED,
#endif
};

#define VARIO_FREQUENCY_ZERO 700/*Hz*/
Expand Down
1 change: 1 addition & 0 deletions radio/src/sdcard.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ extern FIL g_oLogFile;
#define SCRIPTS_FUNCS_PATH SCRIPTS_PATH PATH_SEPARATOR "FUNCTIONS"
#define SCRIPTS_TELEM_PATH SCRIPTS_PATH PATH_SEPARATOR "TELEMETRY"
#define SCRIPTS_TOOLS_PATH SCRIPTS_PATH PATH_SEPARATOR "TOOLS"
#define SCRIPTS_RGB_PATH SCRIPTS_PATH PATH_SEPARATOR "RGBLED"

#define LEN_FILE_PATH_MAX (sizeof(SCRIPTS_TELEM_PATH)+1) // longest + "/"

Expand Down
18 changes: 2 additions & 16 deletions radio/src/storage/yaml/yaml_datastructs_funcs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1407,19 +1407,10 @@ static void r_customFn(void* user, uint8_t* data, uint32_t bitoffs,
}
break;

case FUNC_RGB_LED:
// find "," and cut val_len
for (unsigned i=0; i < DIM(_func_rgbled_lookup); i++) {
if (!strncmp(_func_rgbled_lookup[i],val,l_sep)) {
CFN_PARAM(cfn) = i;
break;
}
}
break;

case FUNC_PLAY_TRACK:
case FUNC_BACKGND_MUSIC:
case FUNC_PLAY_SCRIPT:
case FUNC_RGB_LED:
strncpy(cfn->play.name, val, std::min<uint8_t>(l_sep, LEN_FUNCTION_NAME));
break;

Expand Down Expand Up @@ -1623,15 +1614,10 @@ static bool w_customFn(void* user, uint8_t* data, uint32_t bitoffs,
if (!wf(opaque, str, strlen(str))) return false;
break;

case FUNC_RGB_LED:
// Lua, WHite, Blue, Red, Yellow, Green
str = _func_rgbled_lookup[CFN_PARAM(cfn)];
if (!wf(opaque, str, strlen(str))) return false;
break;

case FUNC_PLAY_TRACK:
case FUNC_BACKGND_MUSIC:
case FUNC_PLAY_SCRIPT:
case FUNC_RGB_LED:
if (!wf(opaque, cfn->play.name, strnlen(cfn->play.name, LEN_FUNCTION_NAME)))
return false;
break;
Expand Down
1 change: 0 additions & 1 deletion radio/src/translations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ ISTR(VMLTPX2);
ISTR(VCSWFUNC);
ISTR(VFSWRESET);
ISTR(FUNCSOUNDS);
ISTR(FUNCRGBLEDS);
ISTR(VTELEMUNIT);
ISTR(GPSFORMAT);
ISTR(VTELEMSCREENTYPE);
Expand Down
1 change: 0 additions & 1 deletion radio/src/translations.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ extern const char* const STR_VMLTPX2[];
extern const char* const STR_VCSWFUNC[];
extern const char* const STR_VFSWRESET[];
extern const char* const STR_FUNCSOUNDS[];
extern const char* const STR_FUNCRGBLEDS[];
extern const char* const STR_VTELEMUNIT[];
extern const char* const STR_GPSFORMAT[];
extern const char* const STR_VTELEMSCREENTYPE[];
Expand Down
1 change: 0 additions & 1 deletion radio/src/translations/cn.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@

#define TR_VFSWRESET TR_FSW_RESET_TIMERS,TR("全部","飞行"),TR_FSW_RESET_TELEM

#define TR_FUNCRGBLEDS "LUA","White","Blue","Red","Yellow","Green"
#define TR_FUNCSOUNDS TR("Bp1","Beep1"),TR("Bp2","Beep2"),TR("Bp3","Beep3"),TR("Wrn1","Warn1"),TR("Wrn2","Warn2"),TR("Chee","Cheep"),TR("Rata","Ratata"),"Tick",TR("Sirn","Siren"),"Ring",TR("SciF","SciFi"),TR("Robt","Robot"),TR("Chrp","Chirp"),"Tada",TR("Crck","Crickt"),TR("Alrm","AlmClk")

#define LENGTH_UNIT_IMP "ft"
Expand Down
1 change: 0 additions & 1 deletion radio/src/translations/cz.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@
#endif

#define TR_VFSWRESET TR_FSW_RESET_TIMERS,"Vše",TR_FSW_RESET_TELEM
#define TR_FUNCRGBLEDS "LUA","White","Blue","Red","Yellow","Green"
#define TR_FUNCSOUNDS TR("Píp1","Pípnutí1"),TR("Píp2","Pípnutí2"),TR("Píp3","Pípnutí3"),TR("Var1","Varování1"),TR("Var2","Varování2"),TR("Chee","Cheep"),TR("Rata", "Ratata"),"Tick",TR("Sirn","Siréna"),"Ring",TR("SciF","SciFi"),TR("Robt","Robot"),TR("Chrp","Chirp"),"Tada",TR("Crck","Crickt"),TR("Alrm","AlmClk")

#define LENGTH_UNIT_IMP "ft"
Expand Down
1 change: 0 additions & 1 deletion radio/src/translations/da.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@

#define TR_VFSWRESET TR_FSW_RESET_TIMERS,TR("Alle","Flight"),TR_FSW_RESET_TELEM

#define TR_FUNCRGBLEDS "LUA","White","Blue","Red","Yellow","Green"
#define TR_FUNCSOUNDS TR("Bi1","Bip1"),TR("Bi2","Bip2"),TR("Bi3","Bi3"),TR("Adv1","Advarsel1"),TR("Adv2","Advarsel2"),TR("Chee","Cheep"),TR("Rata","Ratata"),"Tick",TR("Sirn","Siren"),"Ring",TR("SciF","SciFi"),TR("Robt","Robot"),TR("Chrp","Chirp"),"Tada",TR("Crck","Crickt"),TR("Alrm","AlmClk")

#define LENGTH_UNIT_IMP "ft"
Expand Down
1 change: 0 additions & 1 deletion radio/src/translations/de.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@

#define TR_VFSWRESET TR_FSW_RESET_TIMERS,"All",TR_FSW_RESET_TELEM

#define TR_FUNCRGBLEDS "LUA","White","Blue","Red","Yellow","Green"
#define TR_FUNCSOUNDS TR("Bp1","Piep1"),TR("Bp2","Piep2"),TR("Bp3","Piep3"),TR("Wrn1","Warn1"),TR("Wrn2","Warn2"),TR("Chee","Cheep"),TR("Rata","Ratata"),"Tick",TR("Sirn","Siren"),"Ring",TR("SciF","SciFi"),TR("Robt","Robot"),TR("Chrp","Chirp"),"Tada",TR("Crck","Crickt"),TR("Alrm","AlmClk")

#define LENGTH_UNIT_IMP "ft"
Expand Down
1 change: 0 additions & 1 deletion radio/src/translations/en.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@

#define TR_VFSWRESET TR_FSW_RESET_TIMERS,TR("All","Flight"),TR_FSW_RESET_TELEM

#define TR_FUNCRGBLEDS "LUA","White","Blue","Red","Yellow","Green"
#define TR_FUNCSOUNDS TR("Bp1","Beep1"),TR("Bp2","Beep2"),TR("Bp3","Beep3"),TR("Wrn1","Warn1"),TR("Wrn2","Warn2"),TR("Chee","Cheep"),TR("Rata","Ratata"),"Tick",TR("Sirn","Siren"),"Ring",TR("SciF","SciFi"),TR("Robt","Robot"),TR("Chrp","Chirp"),"Tada",TR("Crck","Crickt"),TR("Alrm","AlmClk")

#define LENGTH_UNIT_IMP "ft"
Expand Down
1 change: 0 additions & 1 deletion radio/src/translations/es.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@

#define TR_VFSWRESET TR_FSW_RESET_TIMERS,TR("Todo","Vuelo"),TR_FSW_RESET_TELEM

#define TR_FUNCRGBLEDS "LUA","White","Blue","Red","Yellow","Green"
#define TR_FUNCSOUNDS TR("Bp1","Beep1"),TR("Bp2","Beep2"),TR("Bp3","Beep3"),TR("Avs1","Aviso1"),TR("Avs2","Aviso2"),TR("Chee","Cheep"),TR("Rata","Ratata"),"Tick",TR("Sirn","Siren"),"Ring",TR("SciF","SciFi"),TR("Robt","Robot"),TR("Chrp","Chirp"),"Tada",TR("Crck","Crickt"),TR("Alrm","AlmClk")

#define LENGTH_UNIT_IMP "ft"
Expand Down
1 change: 0 additions & 1 deletion radio/src/translations/fi.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@

#define TR_VFSWRESET TR_FSW_RESET_TIMERS,"All",TR_FSW_RESET_TELEM

#define TR_FUNCRGBLEDS "LUA","White","Blue","Red","Yellow","Green"
#define TR_FUNCSOUNDS TR("Bp1","Beep1"),TR("Bp2","Beep2"),TR("Bp3","Beep3"),TR("Wrn1","Warn1"),TR("Wrn2","Warn2"),TR("Chee","Cheep"),TR("Rata","Ratata"),"Tick",TR("Sirn","Siren"),"Ring",TR("SciF","SciFi"),TR("Robt","Robot"),TR("Chrp","Chirp"),"Tada",TR("Crck","Crickt"),TR("Alrm","AlmClk")


Expand Down
4 changes: 0 additions & 4 deletions radio/src/translations/fr.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,16 +132,12 @@
#endif

#define TR_VFSWRESET TR_FSW_RESET_TIMERS, "Tout", TR_FSW_RESET_TELEM
#define TR_FUNCRGBLEDS "LUA","White","Blue","Red","Yellow","Green"
#define TR_FUNCSOUNDS TR("Bp1","Beep1"),TR("Bp2","Beep2"),TR("Bp3","Beep3"),TR("Wrn1","Warn1"),TR("Wrn2","Warn2"),TR("Chee","Cheep"),TR("Rata","Ratata"),"Tick",TR("Sirn","Siren"),"Ring",TR("SciF","SciFi"),TR("Robt","Robot"),TR("Chrp","Chirp"),"Tada",TR("Crck","Crickt"),TR("Alrm","AlmClk")



#if LCD_W >= 212
#else
#endif


#define LENGTH_UNIT_IMP "ft"
#define SPEED_UNIT_IMP "mph"
#define LENGTH_UNIT_METR "m"
Expand Down
1 change: 0 additions & 1 deletion radio/src/translations/he.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@

#define TR_VFSWRESET TR_FSW_RESET_TIMERS,TR("All","Flight"),TR_FSW_RESET_TELEM

#define TR_FUNCRGBLEDS "LUA","White","Blue","Red","Yellow","Green"
#define TR_FUNCSOUNDS TR("Bp1","Beep1"),TR("Bp2","Beep2"),TR("Bp3","Beep3"),TR("Wrn1","Warn1"),TR("Wrn2","Warn2"),TR("Chee","Cheep"),TR("Rata","Ratata"),"Tick",TR("Sirn","Siren"),"Ring",TR("SciF","SciFi"),TR("Robt","Robot"),TR("Chrp","Chirp"),"Tada",TR("Crck","Crickt"),TR("Alrm","AlmClk")

#define LENGTH_UNIT_IMP "ft"
Expand Down
1 change: 0 additions & 1 deletion radio/src/translations/it.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@

#define TR_VFSWRESET TR_FSW_RESET_TIMERS,TR("All","Tutto"),TR_FSW_RESET_TELEM

#define TR_FUNCRGBLEDS "LUA","White","Blue","Red","Yellow","Green"
#define TR_FUNCSOUNDS TR("Bp1","Beep1"),TR("Bp2","Beep2"),TR("Bp3","Beep3"),TR("Wrn1","Warn1"),TR("Wrn2","Warn2"),TR("Chee","Cheep"),TR("Rata","Ratata"),"Tick",TR("Sirn","Siren"),"Ring",TR("SciF","SciFi"),TR("Robt","Robot"),TR("Chrp","Chirp"),"Tada",TR("Crck","Crickt"),TR("Alrm","AlmClk")

#define LENGTH_UNIT_IMP "ft"
Expand Down
1 change: 0 additions & 1 deletion radio/src/translations/jp.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@

#define TR_VFSWRESET TR_FSW_RESET_TIMERS,TR("すべて","飛行時"),TR_FSW_RESET_TELEM

#define TR_FUNCRGBLEDS "LUA","White","Blue","Red","Yellow","Green"
#define TR_FUNCSOUNDS TR("Bp1","Beep1"),TR("Bp2","Beep2"),TR("Bp3","Beep3"),TR("Wrn1","Warn1"),TR("Wrn2","Warn2"),TR("Chee","Cheep"),TR("Rata","Ratata"),"Tick",TR("Sirn","Siren"),"Ring",TR("SciF","SciFi"),TR("Robt","Robot"),TR("Chrp","Chirp"),"Tada",TR("Crck","Crickt"),TR("Alrm","AlmClk")

#define LENGTH_UNIT_IMP "ft"
Expand Down
1 change: 0 additions & 1 deletion radio/src/translations/nl.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@

#define TR_VFSWRESET TR_FSW_RESET_TIMERS,TR("All","Vliegdata"),TR_FSW_RESET_TELEM

#define TR_FUNCRGBLEDS "LUA","White","Blue","Red","Yellow","Green"
#define TR_FUNCSOUNDS TR("Bp1","Beep1"),TR("Bp2","Beep2"),TR("Bp3","Beep3"),TR("Wrn1","Warn1"),TR("Wrn2","Warn2"),TR("Chee","Cheep"),TR("Rata","Ratata"),"Tick",TR("Sirn","Siren"),"Ring",TR("SciF","SciFi"),TR("Robt","Robot"),TR("Chrp","Chirp"),"Tada",TR("Crck","Crickt"),TR("Alrm","AlmClk")

#define LENGTH_UNIT_IMP "ft"
Expand Down
1 change: 0 additions & 1 deletion radio/src/translations/pl.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@
#endif

#define TR_VFSWRESET TR_FSW_RESET_TIMERS,TR("All","Flight"),TR_FSW_RESET_TELEM
#define TR_FUNCRGBLEDS "LUA","White","Blue","Red","Yellow","Green"
#define TR_FUNCSOUNDS TR("Bp1","Beep1"),TR("Bp2","Beep2"),TR("Bp3","Beep3"),TR("Ost1","Ostrz1"),TR("Ost2","Ostrz2"),TR("Chee","Cheep"),TR("Rata","Ratata"),"Tick",TR("Syre","Syrena"),TR("Dzwo","Dzwone"),TR("Crck","Krytcz"),TR("Alrm","AlmZeg")

#define LENGTH_UNIT_IMP "ft"
Expand Down
Loading

0 comments on commit abb1d99

Please sign in to comment.