mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 11:47:35 +08:00
committed by
Julian Oes
parent
3b58cfb89d
commit
8b22bde071
@@ -124,6 +124,7 @@ load(const char *devname, const char *fname)
|
||||
#ifndef __PX4_QURT
|
||||
|
||||
char buf[2048];
|
||||
|
||||
if (load_mixer_file(fname, &buf[0], sizeof(buf)) < 0) {
|
||||
warnx("can't load mixer: %s", fname);
|
||||
return 1;
|
||||
@@ -132,20 +133,20 @@ load(const char *devname, const char *fname)
|
||||
/* XXX pass the buffer to the device */
|
||||
int ret = px4_ioctl(dev, MIXERIOCLOADBUF, (unsigned long)buf);
|
||||
#else
|
||||
char newbuf[] =
|
||||
"R: 4x 10000 10000 10000 0\n"
|
||||
"M: 1\n"
|
||||
"O: 10000 10000 0 -10000 10000\n"
|
||||
"S: 0 4 10000 10000 0 -10000 10000\n"
|
||||
"M: 1\n"
|
||||
"O: 10000 10000 0 -10000 10000\n"
|
||||
"S: 0 5 10000 10000 0 -10000 10000\n"
|
||||
"M: 1\n"
|
||||
"O: 10000 10000 0 -10000 10000\n"
|
||||
"S: 0 6 10000 10000 0 -10000 10000\n"
|
||||
"M: 1\n"
|
||||
"O: 10000 10000 0 -10000 10000\n"
|
||||
"S: 0 7 10000 10000 0 -10000 10000\n";
|
||||
char newbuf[] =
|
||||
"R: 4x 10000 10000 10000 0\n"
|
||||
"M: 1\n"
|
||||
"O: 10000 10000 0 -10000 10000\n"
|
||||
"S: 0 4 10000 10000 0 -10000 10000\n"
|
||||
"M: 1\n"
|
||||
"O: 10000 10000 0 -10000 10000\n"
|
||||
"S: 0 5 10000 10000 0 -10000 10000\n"
|
||||
"M: 1\n"
|
||||
"O: 10000 10000 0 -10000 10000\n"
|
||||
"S: 0 6 10000 10000 0 -10000 10000\n"
|
||||
"M: 1\n"
|
||||
"O: 10000 10000 0 -10000 10000\n"
|
||||
"S: 0 7 10000 10000 0 -10000 10000\n";
|
||||
/* XXX pass the buffer to the device */
|
||||
int ret = px4_ioctl(dev, MIXERIOCLOADBUF, (unsigned long)newbuf);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user