Xsens DOT iOS SDK
©2022 Xsens Technologies - Version: 2022.0.0
|
#import <XsensDotSyncManager.h>
Class Methods | |
(BOOL) | + startSync:result: |
(void) | + addSyncDevice:status:sampleCounter: |
(BOOL) | + canSync |
(void) | + stopSync: |
This class is the synchronization manager. All sensors will be time-synced with each other to a common time base after synchronization. Refer to section 3.3.4 in Xsens DOT User Manual for more information. The root node in the iOS SDK is always the first sensor connected. It will take the sensors about 10 seconds to finish the sync period, so you can reconnect the sensors after that.
+ (void) addSyncDevice: | (XsensDotDevice *) | device | |
status: | (NSUInteger) | status | |
sampleCounter: | (UInt32) | sampleCounter | |
Add sensor to sync sensors after startSync (Used in SDK)
device | XsensDotDevice |
status | sync status 0x00 : success ,others are fail |
sampleCounter | For root node, the sampleCnt is 0, For scan node, the sampleCnt is 0 if failure reason is SynchorizationResult_Unstarted(0x9). |
+ (BOOL) canSync |
Check if sync started.
+ (BOOL) startSync: | (NSArray< XsensDotDevice * > *) | devices | |
result: | (XsensDotSyncResultBolck) | resultBlock | |
Start synchronization
devices | List of Xsens DOT sensor (the firstObject is the root others are scanners) |
resultBlock | Sync result array have macAddress and the sync result. |
The result example : ( { address = "D4:CA:6E:F1:6C:0B"; doneSuccess = 1; sampleCounter = 0; status = 0; success = 1; // } ) doneSuccess: sync done status, sampleCounter:sync sample counter, status: sync status code, success: the sync success flag 1 is success and 0 is fail
+ (void) stopSync: | (NSArray< XsensDotDevice * > *) | devices |
Stop synchronization After do it , you can check device.isSynced to get current sync status.
devices | list of XsensDotDevice |