mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 03:53:34 +08:00
fmu: Remove Legacy FMUv4 and use the abstaction SPEKTRUM_POWER
Removed the legacy FMUv4 define that was activating a nonexistent pull up and on some HW driving the PPM_IN aka RC_IN aka SPEKTRUM_RX to VDD. Use the abstaction SPEKTRUM_POWER to enable the interface not the define for the GPIO pin.
This commit is contained in:
@@ -1023,15 +1023,6 @@ void PX4FMU::set_rc_scan_state(RC_SCAN newState)
|
||||
void PX4FMU::rc_io_invert(bool invert)
|
||||
{
|
||||
INVERT_RC_INPUT(invert);
|
||||
|
||||
#ifdef GPIO_RC_OUT
|
||||
|
||||
if (!invert) {
|
||||
// set FMU_RC_OUTPUT high to pull RC_INPUT up
|
||||
px4_arch_gpiowrite(GPIO_RC_OUT, 1);
|
||||
}
|
||||
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -2413,7 +2404,7 @@ PX4FMU::pwm_ioctl(file *filp, int cmd, unsigned long arg)
|
||||
break;
|
||||
}
|
||||
|
||||
#ifdef GPIO_SPEKTRUM_PWR_EN
|
||||
#ifdef SPEKTRUM_POWER
|
||||
|
||||
case DSM_BIND_START:
|
||||
/* only allow DSM2, DSM-X and DSM-X with more than 7 channels */
|
||||
|
||||
Reference in New Issue
Block a user