Enable imu data

This commit is contained in:
KalmanSLightech 2018-07-21 15:43:02 +08:00
parent b33fc86a45
commit 259dc968aa
2 changed files with 3 additions and 3 deletions

View File

@ -87,8 +87,8 @@ int main(int argc, char *argv[]) {
});
// Enable this will cache the motion datas until you get them.
// device->EnableMotionDatas();
device->Start(Source::VIDEO_STREAMING);
device->EnableMotionDatas();
device->Start(Source::ALL);
cv::namedWindow("frame");
std::size_t motion_count = 0;

View File

@ -96,7 +96,7 @@ Device::~Device() {
std::shared_ptr<Device> Device::Create(
const std::string &name, std::shared_ptr<uvc::device> device) {
if (name == "MYNTEYE" || name == "CX3-UVC") {
if (name == "MYNTEYE") {
return std::make_shared<StandardDevice>(device);
} else if (strings::starts_with(name, "MYNT-EYE-")) {
// TODO(JohnZhao): Create different device by name, such as MYNT-EYE-S1000