mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 07:33:34 +08:00
drv_mixer.h - delete unused MIXERIOCGETOUTPUTCOUNT
This commit is contained in:
@@ -65,8 +65,7 @@
|
|||||||
#define _MIXERIOCBASE (0x2500)
|
#define _MIXERIOCBASE (0x2500)
|
||||||
#define _MIXERIOC(_n) (_PX4_IOC(_MIXERIOCBASE, _n))
|
#define _MIXERIOC(_n) (_PX4_IOC(_MIXERIOCBASE, _n))
|
||||||
|
|
||||||
/** get the number of mixable outputs */
|
/* _MIXERIOC(0) was deprecated */
|
||||||
#define MIXERIOCGETOUTPUTCOUNT _MIXERIOC(0)
|
|
||||||
|
|
||||||
/** reset (clear) the mixer configuration */
|
/** reset (clear) the mixer configuration */
|
||||||
#define MIXERIOCRESET _MIXERIOC(1)
|
#define MIXERIOCRESET _MIXERIOC(1)
|
||||||
|
|||||||
@@ -877,7 +877,6 @@ DShotOutput::pwm_ioctl(file *filp, int cmd, unsigned long arg)
|
|||||||
|
|
||||||
switch (cmd) {
|
switch (cmd) {
|
||||||
case PWM_SERVO_GET_COUNT:
|
case PWM_SERVO_GET_COUNT:
|
||||||
case MIXERIOCGETOUTPUTCOUNT:
|
|
||||||
switch (_mode) {
|
switch (_mode) {
|
||||||
|
|
||||||
#if defined(BOARD_HAS_PWM) && BOARD_HAS_PWM >= 14
|
#if defined(BOARD_HAS_PWM) && BOARD_HAS_PWM >= 14
|
||||||
|
|||||||
@@ -1028,7 +1028,6 @@ MK::pwm_ioctl(file *filp, int cmd, unsigned long arg)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case PWM_SERVO_GET_COUNT:
|
case PWM_SERVO_GET_COUNT:
|
||||||
case MIXERIOCGETOUTPUTCOUNT:
|
|
||||||
*(unsigned *)arg = _num_outputs;
|
*(unsigned *)arg = _num_outputs;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
@@ -207,7 +207,6 @@ PWMSim::ioctl(device::file_t *filp, int cmd, unsigned long arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
case PWM_SERVO_GET_COUNT:
|
case PWM_SERVO_GET_COUNT:
|
||||||
case MIXERIOCGETOUTPUTCOUNT:
|
|
||||||
*(unsigned *)arg = OutputModuleInterface::MAX_ACTUATORS;
|
*(unsigned *)arg = OutputModuleInterface::MAX_ACTUATORS;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
@@ -1277,7 +1277,6 @@ PX4FMU::pwm_ioctl(file *filp, int cmd, unsigned long arg)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case PWM_SERVO_GET_COUNT:
|
case PWM_SERVO_GET_COUNT:
|
||||||
case MIXERIOCGETOUTPUTCOUNT:
|
|
||||||
switch (_mode) {
|
switch (_mode) {
|
||||||
|
|
||||||
#if defined(BOARD_HAS_PWM) && BOARD_HAS_PWM >= 14
|
#if defined(BOARD_HAS_PWM) && BOARD_HAS_PWM >= 14
|
||||||
|
|||||||
@@ -2810,10 +2810,6 @@ PX4IO::ioctl(file *filep, int cmd, unsigned long arg)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MIXERIOCGETOUTPUTCOUNT:
|
|
||||||
*(unsigned *)arg = _max_actuators;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case MIXERIOCRESET:
|
case MIXERIOCRESET:
|
||||||
ret = 0; /* load always resets */
|
ret = 0; /* load always resets */
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -828,10 +828,6 @@ UavcanNode::ioctl(file *filp, int cmd, unsigned long arg)
|
|||||||
// these are no-ops, as no safety switch
|
// these are no-ops, as no safety switch
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MIXERIOCGETOUTPUTCOUNT:
|
|
||||||
*(unsigned *)arg = _output_count;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case MIXERIOCRESET:
|
case MIXERIOCRESET:
|
||||||
_mixing_interface.mixingOutput().resetMixerThreadSafe();
|
_mixing_interface.mixingOutput().resetMixerThreadSafe();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user