mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 09:43:34 +08:00
delete drv_mixer.h
This commit is contained in:
@@ -795,57 +795,6 @@ int ModalaiEsc::update_params()
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
int ModalaiEsc::ioctl(file *filp, int cmd, unsigned long arg)
|
||||
{
|
||||
SmartLock lock_guard(_lock);
|
||||
|
||||
int ret = OK;
|
||||
|
||||
PX4_DEBUG("modalai_esc ioctl cmd: %d, arg: %ld", cmd, arg);
|
||||
|
||||
switch (cmd) {
|
||||
case PWM_SERVO_ARM:
|
||||
PX4_INFO("PWM_SERVO_ARM");
|
||||
break;
|
||||
|
||||
case PWM_SERVO_DISARM:
|
||||
PX4_INFO("PWM_SERVO_DISARM");
|
||||
break;
|
||||
|
||||
case MIXERIOCRESET:
|
||||
_mixing_output.resetMixer();
|
||||
break;
|
||||
|
||||
case MIXERIOCLOADBUF: {
|
||||
const char *buf = (const char *)arg;
|
||||
unsigned buflen = strlen(buf);
|
||||
ret = _mixing_output.loadMixer(buf, buflen);
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
ret = -ENOTTY;
|
||||
break;
|
||||
}
|
||||
|
||||
/* if nobody wants it, let CDev have it */
|
||||
if (ret == -ENOTTY) {
|
||||
ret = CDev::ioctl(filp, cmd, arg);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* OutputModuleInterface */
|
||||
void ModalaiEsc::mixerChanged()
|
||||
{
|
||||
/*
|
||||
* This driver is only supporting 4 channel ESC
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
void ModalaiEsc::updateLeds(vehicle_control_mode_s mode, led_control_s control)
|
||||
{
|
||||
int i = 0;
|
||||
|
||||
@@ -34,7 +34,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <drivers/device/device.h>
|
||||
#include <drivers/drv_mixer.h>
|
||||
#include <lib/cdev/CDev.hpp>
|
||||
#include <lib/led/led.h>
|
||||
#include <lib/mixer_module/mixer_module.hpp>
|
||||
@@ -80,8 +79,6 @@ public:
|
||||
/** @see OutputModuleInterface */
|
||||
void mixerChanged() override;
|
||||
|
||||
virtual int ioctl(file *filp, int cmd, unsigned long arg);
|
||||
|
||||
virtual int init();
|
||||
|
||||
typedef enum {
|
||||
|
||||
Reference in New Issue
Block a user