diff --git a/doc/en/spec_control_api.md b/doc/en/spec_control_api.md index 46d2366..249613b 100644 --- a/doc/en/spec_control_api.md +++ b/doc/en/spec_control_api.md @@ -14,7 +14,7 @@ There are two control modes, one is through UVC standard protocol, the other is | Name | Field | Bytes | Default | Min | Max | Stored | Flash Address | Channel | Note | | :--- | :---- | :---- | :------ | :-- | :-- | :----- | :------------ | :------ | :----- | -| Frame rate | frame_rate | 2 | 25 | 10 | √ | 0x21 | XU_CAM_CTRL | values: {10,15,20,25,30,35,40,45,50,55} | +| Frame rate | frame_rate | 2 | 25 | 10 | √ | 0x21 | XU_CAM_CTRL | values: {10,15,20,25,30,35,40,45,50,55,60} | | IMU frequency | imu_frequency | 2 | 200 | 100 | 500 | √ | 0x23 | XU_CAM_CTRL | values: {100,200,250,333,500} | | Exposure mode | exposure_mode | 1 | 0 | 0 | 1 | √ | 0x0F | XU_CAM_CTRL | 0: enable auto-exposure; 1: manual-exposure | | Max gain | max_gain | 2 | 48 | 0 | 48 | √ | 0x1D | XU_CAM_CTRL | valid if auto-exposure | diff --git a/doc/zh-Hans/spec_control_api.md b/doc/zh-Hans/spec_control_api.md index 9c3bea1..d1c9601 100644 --- a/doc/zh-Hans/spec_control_api.md +++ b/doc/zh-Hans/spec_control_api.md @@ -16,7 +16,7 @@ | 名称 | 字段 | 字节数 | 默认值 | 最小值 | 最大值 | 是否储存 | Flash 地址 | 所属通道 | 说明 | | :----- | :----- | :-------- | :-------- | :-------- | :-------- | :----------- | :----------- | :----------- | :----- | -| 图像帧率 | frame_rate | 2 | 25 | 10 | √ | 0x21 | XU_CAM_CTRL | 步进为5,即有效值为{10,15,20,25,30,35,40,45,50,55} | +| 图像帧率 | frame_rate | 2 | 25 | 10 | √ | 0x21 | XU_CAM_CTRL | 步进为5,即有效值为{10,15,20,25,30,35,40,45,50,55,60} | | IMU 频率 | imu_frequency | 2 | 200 | 100 | 500 | √ | 0x23 | XU_CAM_CTRL | 有效值为{100,200,250,333,500} | | 曝光模式 | exposure_mode | 1 | 0 | 0 | 1 | √ | 0x0F | XU_CAM_CTRL | 0:开启自动曝光; 1:关闭 | | 最大增益 | max_gain | 2 | 48 | 0 | 48 | √ | 0x1D | XU_CAM_CTRL | 开始自动曝光,可设定的阈值 | diff --git a/include/mynteye/types.h b/include/mynteye/types.h index 51a8e40..0ab79fd 100644 --- a/include/mynteye/types.h +++ b/include/mynteye/types.h @@ -144,7 +144,7 @@ enum class Option : std::uint8_t { /** * Image frame rate, must set IMU_FREQUENCY together * - * values: {10,15,20,25,30,35,40,45,50,55}, default: 25 + * values: {10,15,20,25,30,35,40,45,50,55,60}, default: 25 */ FRAME_RATE, /** diff --git a/samples/tutorials/control/framerate.cc b/samples/tutorials/control/framerate.cc index 6a16a19..a6ab3b3 100644 --- a/samples/tutorials/control/framerate.cc +++ b/samples/tutorials/control/framerate.cc @@ -29,7 +29,7 @@ int main(int argc, char *argv[]) { // Attention: must set FRAME_RATE and IMU_FREQUENCY together, otherwise won't // succeed. - // FRAME_RATE values: 10, 15, 20, 25, 30, 35, 40, 45, 50, 55 + // FRAME_RATE values: 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60 api->SetOptionValue(Option::FRAME_RATE, 25); // IMU_FREQUENCY values: 100, 200, 250, 333, 500 api->SetOptionValue(Option::IMU_FREQUENCY, 500); diff --git a/src/internal/channels.cc b/src/internal/channels.cc index 2c3fd8d..68bd2b6 100644 --- a/src/internal/channels.cc +++ b/src/internal/channels.cc @@ -224,7 +224,7 @@ void Channels::SetControlValue(const Option &option, std::int32_t value) { } break; case Option::FRAME_RATE: { if (!in_range() || - !in_values({10, 15, 20, 25, 30, 35, 40, 45, 50, 55})) + !in_values({10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60})) break; XuCamCtrlSet(option, value); } break; diff --git a/src/public/utils.cc b/src/public/utils.cc index 36ba8ff..566a389 100644 --- a/src/public/utils.cc +++ b/src/public/utils.cc @@ -100,6 +100,9 @@ float get_real_exposure_time( case 55: real_max = 16.325; break; + case 60: + real_max = 15; + break; default: LOG(ERROR) << "Invalid frame rate: " << frame_rate; return exposure_time; diff --git a/wrappers/python/samples/mynteye.py b/wrappers/python/samples/mynteye.py index 608787b..1e70f75 100644 --- a/wrappers/python/samples/mynteye.py +++ b/wrappers/python/samples/mynteye.py @@ -99,7 +99,7 @@ def main(): # set_option_value def set_rate(frame_rate=25, imu_frequency=500): # pylint: disable=unused-variable - # FRAME_RATE values: 10, 15, 20, 25, 30, 35, 40, 45, 50, 55 + # FRAME_RATE values: 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60 api.set_option_value(mynteye.FRAME_RATE, frame_rate) # IMU_FREQUENCY values: 100, 200, 250, 333, 500 api.set_option_value(mynteye.IMU_FREQUENCY, imu_frequency) diff --git a/wrappers/ros/src/mynt_eye_ros_wrapper/launch/mynteye.launch b/wrappers/ros/src/mynt_eye_ros_wrapper/launch/mynteye.launch index 0b3679a..2ef423d 100644 --- a/wrappers/ros/src/mynt_eye_ros_wrapper/launch/mynteye.launch +++ b/wrappers/ros/src/mynt_eye_ros_wrapper/launch/mynteye.launch @@ -54,7 +54,7 @@ - +