Change channel value

This commit is contained in:
John Zhao 2018-05-29 12:21:30 +08:00
parent 3673324079
commit aed39f0942
2 changed files with 7 additions and 7 deletions

View File

@ -839,7 +839,7 @@ bool Channels::PuControlQuery(
bool Channels::XuControlRange(
channel_t channel, int32_t *min, int32_t *max, int32_t *def) const {
return XuControlRange(mynteye_xu, channel >> 8, min, max, def);
return XuControlRange(mynteye_xu, channel, min, max, def);
}
bool Channels::XuControlRange(
@ -852,7 +852,7 @@ bool Channels::XuControlRange(
bool Channels::XuControlQuery(
channel_t channel, uvc::xu_query query, uint16_t size,
uint8_t *data) const {
return XuControlQuery(mynteye_xu, channel >> 8, query, size, data);
return XuControlQuery(mynteye_xu, channel, query, size, data);
}
bool Channels::XuControlQuery(

View File

@ -24,11 +24,11 @@ struct xu;
class MYNTEYE_API Channels {
public:
typedef enum Channel {
CHANNEL_CAM_CTRL = 0x0100,
CHANNEL_HALF_DUPLEX = 0x0200,
CHANNEL_IMU_WRITE = 0x0300,
CHANNEL_IMU_READ = 0x0400,
CHANNEL_FILE = 0x0500,
CHANNEL_CAM_CTRL = 1,
CHANNEL_HALF_DUPLEX = 2,
CHANNEL_IMU_WRITE = 3,
CHANNEL_IMU_READ = 4,
CHANNEL_FILE = 5,
CHANNEL_LAST
} channel_t;