mixer: move MixerGroup out of Mixer hierarchy and delete mixer.h header

This commit is contained in:
Daniel Agar
2019-11-22 15:00:25 -05:00
parent 011186b8a5
commit 79dc676c8f
36 changed files with 233 additions and 352 deletions
+3 -3
View File
@@ -72,7 +72,7 @@
#include <drivers/drv_tone_alarm.h>
#include <systemlib/err.h>
#include <lib/mixer/mixer.h>
#include <lib/mixer/MixerGroup.hpp>
#include <uORB/topics/actuator_controls.h>
#include <uORB/topics/actuator_outputs.h>
@@ -1045,7 +1045,7 @@ MK::pwm_ioctl(file *filp, int cmd, unsigned long arg)
unsigned buflen = strlen(buf);
if (_mixers == nullptr) {
_mixers = new MixerGroup(control_callback, (uintptr_t)&_controls);
_mixers = new MixerGroup();
}
if (_mixers == nullptr) {
@@ -1053,7 +1053,7 @@ MK::pwm_ioctl(file *filp, int cmd, unsigned long arg)
} else {
ret = _mixers->load_from_buf(buf, buflen);
ret = _mixers->load_from_buf(control_callback, (uintptr_t)&_controls, buf, buflen);
if (ret != 0) {
DEVICE_DEBUG("mixer load failed with %d", ret);