From 6415b50638770c0744e5098f4cec17db5822b2d2 Mon Sep 17 00:00:00 2001 From: bsongis Date: Mon, 5 Mar 2012 07:02:12 +0000 Subject: [PATCH] Fixed a bug in template "Servos test" --- src/templates.cpp | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/src/templates.cpp b/src/templates.cpp index 385ad23b4..abfd28800 100644 --- a/src/templates.cpp +++ b/src/templates.cpp @@ -59,24 +59,6 @@ #include "open9x.h" #include "templates.h" -const pm_char stn1[] PROGMEM = "Simple 4-CH"; -const pm_char stn2[] PROGMEM = "T-Cut"; -const pm_char stn3[] PROGMEM = "V-Tail"; -const pm_char stn4[] PROGMEM = "Elevon\\Delta"; -const pm_char stn5[] PROGMEM = "eCCPM"; -const pm_char stn6[] PROGMEM = "Heli Setup"; -const pm_char stn7[] PROGMEM = "Servo Test"; -const pm_char * const n_Templates[] PROGMEM = -{ - stn1, - stn2, - stn3, - stn4, - stn5, - stn6, - stn7 -}; - MixData* setDest(uint8_t dch) { uint8_t i = 0; @@ -221,8 +203,8 @@ void applyTemplate(uint8_t idx) // Servo Test case (6): - md=setDest(14); md->srcRaw=CH(16); md->weight= 100; md->speedUp = 8; md->speedDown = 8; - md=setDest(15); md->srcRaw=MIX_SW1; md->weight= 110; md->swtch=DSW_SW1; + md=setDest(14); md->srcRaw=MIX_CH16; md->weight= 100; md->speedUp = 8; md->speedDown = 8; + md=setDest(15); md->srcRaw=MIX_SW1; md->weight= 110; md=setDest(15); md->srcRaw=MIX_MAX; md->weight=-110; md->swtch=DSW_SW2; md->mltpx=MLTPX_REP; md=setDest(15); md->srcRaw=MIX_MAX; md->weight= 110; md->swtch=DSW_SW3; md->mltpx=MLTPX_REP;