Side readded in Companion. Templates removed.
This commit is contained in:
+4
-2
@@ -994,8 +994,10 @@ ifeq ($(HELI), YES)
|
||||
endif
|
||||
|
||||
ifeq ($(TEMPLATES), YES)
|
||||
CPPDEFS += -DTEMPLATES
|
||||
CPPSRC += templates.cpp
|
||||
ifneq ($(PCB), TARANIS)
|
||||
CPPDEFS += -DTEMPLATES
|
||||
CPPSRC += templates.cpp
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(PXX), YES)
|
||||
|
||||
@@ -3283,7 +3283,7 @@ static uint8_t s_copySrcCh;
|
||||
#define EXPO_LINE_SRC_POS 9*FW-2
|
||||
#define EXPO_LINE_CURVE_POS 12*FW+4
|
||||
#define EXPO_LINE_SWITCH_POS 17*FW-1
|
||||
#define EXPO_LINE_SIDE_POS 20*FW-1
|
||||
#define EXPO_LINE_SIDE_POS 20*FW-2
|
||||
#define EXPO_LINE_SELECT_POS 5*FW+2
|
||||
#define EXPO_LINE_FM_POS LCD_W-LEN_EXPOMIX_NAME*FW-MENUS_SCROLLBAR_WIDTH-FW
|
||||
#define EXPO_LINE_NAME_POS LCD_W-LEN_EXPOMIX_NAME*FW-MENUS_SCROLLBAR_WIDTH
|
||||
|
||||
@@ -56,6 +56,10 @@
|
||||
|
||||
#include "opentx.h"
|
||||
|
||||
#if defined(PCBTARANIS)
|
||||
#pragma message("Templates with virtual inputs (FrSky Taranis) are not implemented!")
|
||||
#endif
|
||||
|
||||
MixData* setDest(uint8_t dch, uint8_t src, bool clear=false)
|
||||
{
|
||||
uint8_t i = 0;
|
||||
@@ -184,13 +188,10 @@ void applyTemplate(uint8_t idx)
|
||||
// Simple 4-Ch
|
||||
case TMPL_SIMPLE_4CH:
|
||||
defaultInputs();
|
||||
#if defined(PCBTARANIS)
|
||||
#pragma message("Templates with virtual inputs (FrSky Taranis) are not implemented!")
|
||||
#endif
|
||||
setDest(ICC(STK_RUD), MIXSRC_Rud);
|
||||
setDest(ICC(STK_ELE), MIXSRC_Ele);
|
||||
setDest(ICC(STK_THR), MIXSRC_Thr);
|
||||
setDest(ICC(STK_AIL), MIXSRC_Ail);
|
||||
setDest(ICC(STK_RUD), TMPL_INPUT(STK_RUD));
|
||||
setDest(ICC(STK_ELE), TMPL_INPUT(STK_ELE));
|
||||
setDest(ICC(STK_THR), TMPL_INPUT(STK_THR));
|
||||
setDest(ICC(STK_AIL), TMPL_INPUT(STK_AIL));
|
||||
break;
|
||||
|
||||
// Sticky-T-Cut
|
||||
|
||||
Reference in New Issue
Block a user