Fix imu range bug
This commit is contained in:
parent
0610d43fe5
commit
2b1288bcd4
|
@ -19,8 +19,8 @@
|
||||||
| 最大曝光时间 | max_exposure_time | 2 | 333 | 0 | 1000 | √ | 0x1B | XU_CAM_CTRL | 0x0100 | 开始自动曝光,可设定的阈值 |
|
| 最大曝光时间 | max_exposure_time | 2 | 333 | 0 | 1000 | √ | 0x1B | XU_CAM_CTRL | 0x0100 | 开始自动曝光,可设定的阈值 |
|
||||||
| 期望亮度 | desired_brightness | 2 | 122 | 1 | 255 | √ | 0x19 | XU_CAM_CTRL | 0x0100 | |
|
| 期望亮度 | desired_brightness | 2 | 122 | 1 | 255 | √ | 0x19 | XU_CAM_CTRL | 0x0100 | |
|
||||||
| 擦除芯片 | erase_chip | | - | - | - | × | - | XU_HALF_DUPLEX | 0x0200 | |
|
| 擦除芯片 | erase_chip | | - | - | - | × | - | XU_HALF_DUPLEX | 0x0200 | |
|
||||||
| 最小曝光时间 | min_exposure_time | 2 | 0 | 0 | 1000 | √ | ?? | XU_CAM_CTRL | 0x0100 | 开始自动曝光,可设定的阈值 |
|
| 最小曝光时间 | min_exposure_time | 2 | 0 | 0 | 1000 | √ | - | XU_CAM_CTRL | 0x0100 | 开始自动曝光,可设定的阈值 |
|
||||||
| 加速度计量程 | accelerometer_range | 2 | 12 | 6 | 48 | √ | ?? | XU_CAM_CTRL | 0x0100 | |
|
| 加速度计量程 | accelerometer_range | 2 | 12 | 6 | 48 | √ | - | XU_CAM_CTRL | 0x0100 | |
|
||||||
| 陀螺仪量程 | gyroscope_range | 2 | 1000 | 250 | 4000 | √ | ?? | XU_CAM_CTRL | 0x0100 | |
|
| 陀螺仪量程 | gyroscope_range | 2 | 1000 | 250 | 4000 | √ | - | XU_CAM_CTRL | 0x0100 | |
|
||||||
| 加速度计低通滤波 | accelerometer_low_pass_filter | 2 | 2 | 0 | 2 | √ | ?? | XU_CAM_CTRL | 0x0100 | |
|
| 加速度计低通滤波 | accelerometer_low_pass_filter | 2 | 2 | 0 | 2 | √ | - | XU_CAM_CTRL | 0x0100 | |
|
||||||
| 陀螺仪低通滤波 | gyroscope__low_pass_filter | 2 | 64 | 23 | 64 | √ | ?? | XU_CAM_CTRL | 0x0100 | |
|
| 陀螺仪低通滤波 | gyroscope__low_pass_filter | 2 | 64 | 23 | 64 | √ | - | XU_CAM_CTRL | 0x0100 | |
|
||||||
|
|
|
@ -200,31 +200,31 @@ enum class Option : std::uint8_t {
|
||||||
/**
|
/**
|
||||||
* min exposure time, valid if auto-exposure
|
* min exposure time, valid if auto-exposure
|
||||||
*
|
*
|
||||||
* range: [0,?], default: ?
|
* range: [0,1000], default: 0
|
||||||
*/
|
*/
|
||||||
MIN_EXPOSURE_TIME,
|
MIN_EXPOSURE_TIME,
|
||||||
/**
|
/**
|
||||||
* The range of accelerometer
|
* The range of accelerometer
|
||||||
*
|
*
|
||||||
* values: {?}, default: ?
|
* values: {6,12,24,48}, default: 6
|
||||||
*/
|
*/
|
||||||
ACCELEROMETER_RANGE,
|
ACCELEROMETER_RANGE,
|
||||||
/**
|
/**
|
||||||
* The range of gyroscope
|
* The range of gyroscope
|
||||||
*
|
*
|
||||||
* values: {?}, default: ?
|
* values: {250,500,1000,2000,4000}, default: 1000
|
||||||
*/
|
*/
|
||||||
GYROSCOPE_RANGE,
|
GYROSCOPE_RANGE,
|
||||||
/**
|
/**
|
||||||
* The parameter of accelerometer low pass filter
|
* The parameter of accelerometer low pass filter
|
||||||
*
|
*
|
||||||
* values: {?}, default: ?
|
* values: {0,1,2}, default: 2
|
||||||
*/
|
*/
|
||||||
ACCELEROMETER_LOW_PASS_FILTER,
|
ACCELEROMETER_LOW_PASS_FILTER,
|
||||||
/**
|
/**
|
||||||
* The parameter of gyroscope low pass filter
|
* The parameter of gyroscope low pass filter
|
||||||
*
|
*
|
||||||
* values: {?}, default: ?
|
* values: {23,64}, default: 64
|
||||||
*/
|
*/
|
||||||
GYROSCOPE_LOW_PASS_FILTER,
|
GYROSCOPE_LOW_PASS_FILTER,
|
||||||
/** Last guard */
|
/** Last guard */
|
||||||
|
|
|
@ -262,7 +262,7 @@ void Channels::SetControlValue(const Option &option, std::int32_t value) {
|
||||||
XuCamCtrlSet(option, value);
|
XuCamCtrlSet(option, value);
|
||||||
} break;
|
} break;
|
||||||
case Option::GYROSCOPE_RANGE: {
|
case Option::GYROSCOPE_RANGE: {
|
||||||
if (!in_range() || !in_values({6, 12, 24, 48}))
|
if (!in_range() || !in_values({250, 500, 1000, 2000, 4000}))
|
||||||
break;
|
break;
|
||||||
XuCamCtrlSet(option, value);
|
XuCamCtrlSet(option, value);
|
||||||
} break;
|
} break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user