fix(*): s1030 display stream config fps now be set to 30 default.

This commit is contained in:
TinyO 2019-08-29 13:34:43 +08:00
parent 9f83e83cb6
commit 97be6807ab
2 changed files with 8 additions and 7 deletions

View File

@ -89,10 +89,16 @@ MYNTEYE_NAMESPACE::StreamRequest select_request(
*ok = false;
return {};
}
auto requests_display = requests;
if (Model::STANDARD == device->GetModel()) {
for (std::size_t i = 0; i < n; i++) {
requests_display[i].fps = 30;
}
}
LOG(INFO) << "MYNT EYE requests:";
for (std::size_t i = 0; i < n; i++) {
auto &&request = requests[i];
auto &&request = requests_display[i];
LOG(INFO) << " index: " << i
<< ", request: " << request;
}

View File

@ -190,14 +190,9 @@ std::size_t bytes_per_pixel(const Format &value) {
}
std::ostream &operator<<(std::ostream &os, const StreamRequest &request) {
if (request.fps == 0) {
return os << "width: " << request.width << ", height: " << request.height
<< ", format: " << request.format;
} else {
return os << "width: " << request.width << ", height: " << request.height
<< ", format: " << request.format << ", fps: " << request.fps;
}
}
const char *to_string(const CalibrationModel &model) {
#define CASE(X) \