mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 21:48:28 -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_ACRO_TRAINER_LIMITED 45
|
||||||
#define DATA_EPM_GRAB 46
|
#define DATA_EPM_GRAB 46
|
||||||
#define DATA_EPM_RELEASE 47
|
#define DATA_EPM_RELEASE 47
|
||||||
#define DATA_EPM_NEUTRAL 48
|
#define DATA_EPM_NEUTRAL 48 // deprecated
|
||||||
#define DATA_PARACHUTE_DISABLED 49
|
#define DATA_PARACHUTE_DISABLED 49
|
||||||
#define DATA_PARACHUTE_ENABLED 50
|
#define DATA_PARACHUTE_ENABLED 50
|
||||||
#define DATA_PARACHUTE_RELEASED 51
|
#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();
|
epm.release();
|
||||||
Log_Write_Event(DATA_EPM_RELEASE);
|
Log_Write_Event(DATA_EPM_RELEASE);
|
||||||
break;
|
break;
|
||||||
case AUX_SWITCH_MIDDLE:
|
|
||||||
epm.neutral();
|
|
||||||
Log_Write_Event(DATA_EPM_NEUTRAL);
|
|
||||||
break;
|
|
||||||
case AUX_SWITCH_HIGH:
|
case AUX_SWITCH_HIGH:
|
||||||
epm.grab();
|
epm.grab();
|
||||||
Log_Write_Event(DATA_EPM_GRAB);
|
Log_Write_Event(DATA_EPM_GRAB);
|
||||||
|
Loading…
Reference in New Issue
Block a user