feat(imu): imu2.0 decond part complete.

This commit is contained in:
TinyO
2019-09-29 16:42:44 +08:00
parent 7e0e4b83e7
commit 283f0b141c
11 changed files with 90 additions and 37 deletions

View File

@@ -347,7 +347,12 @@ class MYNTEYE_API API {
std::vector<api::MotionData> GetMotionDatas();
/**
* Enable motion datas with timestamp correspondence of some stream.
* enable motion datas timestamp correspondence in device.
*/
void EnableImuTimestampCorrespondence(bool is_enable);
/**
* Enable motion datas with timestamp correspondence of some stream in api.
*/
void EnableTimestampCorrespondence(const Stream &stream,
bool keep_accel_then_gyro = true);
@@ -385,6 +390,9 @@ class MYNTEYE_API API {
motion_callback_t callback_;
bool api_correspondence_enable_;
bool dev_correspondence_enable_;
void CheckImageParams();
};

View File

@@ -290,6 +290,10 @@ class MYNTEYE_API Device {
* Enable cache motion datas.
*/
void EnableMotionDatas();
/**
* Enable motion datas timestamp correspondence.
*/
void EnableImuCorrespondence(bool is_enable);
/**
* Enable cache motion datas.
*/