mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 08:38:36 -04:00
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:
parent
d09bbd1d91
commit
3fa3cb6d65
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user