issue 69 T-Cut template replaced to Sticky-T-Cut

This commit is contained in:
gbirkus@gmail.com
2012-09-04 20:31:23 +00:00
parent d7226f5e61
commit ad54506f86
7 changed files with 15 additions and 8 deletions
+2
View File
@@ -477,6 +477,8 @@ enum CswFunctions {
#define DSW_SW4 13 #define DSW_SW4 13
#define DSW_SW5 14 #define DSW_SW5 14
#define DSW_SW6 15 #define DSW_SW6 15
#define DSW_SWB 20
#define DSW_SWC 21
#define THRCHK_DEADBAND 16 #define THRCHK_DEADBAND 16
#define SPLASH_TIMEOUT (4*100) // 4 seconds #define SPLASH_TIMEOUT (4*100) // 4 seconds
+8 -3
View File
@@ -144,9 +144,14 @@ void applyTemplate(uint8_t idx)
setDest(ICC(STK_AIL), MIXSRC_Ail); setDest(ICC(STK_AIL), MIXSRC_Ail);
break; break;
// T-Cut // Sticky-T-Cut
case TMPL_THR_CUT: case TMPL_STI_THR_CUT:
md=setDest(ICC(STK_THR), MIXSRC_MAX); md->weight=-100; md->swtch=DSW_THR; md->mltpx=MLTPX_REP; md=setDest(ICC(STK_THR), MIXSRC_MAX); md->weight=-100; md->swtch=DSW_SWC; md->mltpx=MLTPX_REP;
md=setDest(13, MIXSRC_CH11+3); md->weight= 100;
md=setDest(13, MIXSRC_MAX); md->weight=-100; md->swtch=DSW_SWB; md->mltpx=MLTPX_REP;
md=setDest(13, MIXSRC_MAX); md->weight= 100; md->swtch=DSW_THR; md->mltpx=MLTPX_REP;
setSwitch(11, CS_VNEG, STK_THR, -99);
setSwitch(12, CS_VPOS, 38, 0);
break; break;
// V-Tail // V-Tail
+1 -1
View File
@@ -73,7 +73,7 @@
enum Templates { enum Templates {
TMPL_CLEAR_MIXES, TMPL_CLEAR_MIXES,
TMPL_SIMPLE_4CH, TMPL_SIMPLE_4CH,
TMPL_THR_CUT, TMPL_STI_THR_CUT,
TMPL_V_TAIL, TMPL_V_TAIL,
TMPL_ELEVON_DELTA, TMPL_ELEVON_DELTA,
TMPL_ECCPM, TMPL_ECCPM,
+1 -1
View File
@@ -191,7 +191,7 @@
#define LEN2_VTEMPLATES 13 #define LEN2_VTEMPLATES 13
#define LEN_VTEMPLATES "\015" #define LEN_VTEMPLATES "\015"
#define TR_VTEMPLATES "Smazat Mixy\0\0""Z\200kl. 4kan\200l\0""T-Cut \0""V-Ocas \0""Elevon\\Delta\0""eCCPM \0""Heli Setup \0""Servo Test \0" #define TR_VTEMPLATES "Smazat Mixy\0\0""Z\200kl. 4kan\200l\0"Sticky-T-Cut\0"V-Ocas \0""Elevon\\Delta\0""eCCPM \0""Heli Setup \0""Servo Test \0"
#define LEN_VSWASHTYPE "\004" #define LEN_VSWASHTYPE "\004"
#define TR_VSWASHTYPE "--- ""120 ""120X""140 ""90\0" #define TR_VSWASHTYPE "--- ""120 ""120X""140 ""90\0"
+1 -1
View File
@@ -191,7 +191,7 @@
#define LEN2_VTEMPLATES 13 #define LEN2_VTEMPLATES 13
#define LEN_VTEMPLATES "\015" #define LEN_VTEMPLATES "\015"
#define TR_VTEMPLATES "Clear Mixes\0\0""Simple 4-CH \0""T-Cut \0""V-Tail \0""Elevon\\Delta\0""eCCPM \0""Heli Setup \0""Servo Test \0" #define TR_VTEMPLATES "Clear Mixes\0\0""Simple 4-CH \0"Sticky-T-Cut\0"V-Tail \0""Elevon\\Delta\0""eCCPM \0""Heli Setup \0""Servo Test \0"
#define LEN_VSWASHTYPE "\004" #define LEN_VSWASHTYPE "\004"
#define TR_VSWASHTYPE "--- ""120 ""120X""140 ""90\0" #define TR_VSWASHTYPE "--- ""120 ""120X""140 ""90\0"
+1 -1
View File
@@ -192,7 +192,7 @@
#define LEN2_VTEMPLATES 13 #define LEN2_VTEMPLATES 13
#define LEN_VTEMPLATES "\015" #define LEN_VTEMPLATES "\015"
#define TR_VTEMPLATES "Clear Mixes\0\0""Simple 4-CH \0""T-Cut \0""V-Tail \0""Elevon\\Delta\0""eCCPM \0""Heli Setup \0""Servo Test \0" #define TR_VTEMPLATES "Clear Mixes\0\0""Simple 4-CH \0""Sticky-T-Cut\0""V-Tail \0""Elevon\\Delta\0""eCCPM \0""Heli Setup \0""Servo Test \0"
#define LEN_VSWASHTYPE "\004" #define LEN_VSWASHTYPE "\004"
#define TR_VSWASHTYPE "--- ""120 ""120X""140 ""90\0" #define TR_VSWASHTYPE "--- ""120 ""120X""140 ""90\0"
+1 -1
View File
@@ -191,7 +191,7 @@
#define LEN2_VTEMPLATES 13 #define LEN2_VTEMPLATES 13
#define LEN_VTEMPLATES "\015" #define LEN_VTEMPLATES "\015"
#define TR_VTEMPLATES "Clear Mixes\0\0""Simple 4-CH \0""T-Cut \0""V-Tail \0""Elevon\\Delta\0""eCCPM \0""Heli Setup \0""Servo Test \0" #define TR_VTEMPLATES "Clear Mixes\0\0""Simple 4-CH \0"Sticky-T-Cut\0"V-Tail \0""Elevon\\Delta\0""eCCPM \0""Heli Setup \0""Servo Test \0"
#define LEN_VSWASHTYPE "\004" #define LEN_VSWASHTYPE "\004"
#define TR_VSWASHTYPE "--- ""120 ""120X""140 ""90\0" #define TR_VSWASHTYPE "--- ""120 ""120X""140 ""90\0"