Copter: remove EPM neutral from ch7/ch8 switch

The EPM library returns the pwm output sent to the EPM to the neutral
position automatically meaning an explicit ch7/ch8 setting is not
required
This commit is contained in:
Randy Mackay 2014-09-17 15:02:23 +09:00
parent d09bbd1d91
commit 3fa3cb6d65
2 changed files with 1 additions and 5 deletions

View File

@ -294,7 +294,7 @@ enum FlipState {
#define DATA_ACRO_TRAINER_LIMITED 45
#define DATA_EPM_GRAB 46
#define DATA_EPM_RELEASE 47
#define DATA_EPM_NEUTRAL 48
#define DATA_EPM_NEUTRAL 48 // deprecated
#define DATA_PARACHUTE_DISABLED 49
#define DATA_PARACHUTE_ENABLED 50
#define DATA_PARACHUTE_RELEASED 51

View File

@ -313,10 +313,6 @@ static void do_aux_switch_function(int8_t ch_function, uint8_t ch_flag)
epm.release();
Log_Write_Event(DATA_EPM_RELEASE);
break;
case AUX_SWITCH_MIDDLE:
epm.neutral();
Log_Write_Event(DATA_EPM_NEUTRAL);
break;
case AUX_SWITCH_HIGH:
epm.grab();
Log_Write_Event(DATA_EPM_GRAB);