无法设置系统时间

问题描述

我正在尝试通过设置系统时间来同步多个传感器,如 Movesense 开发者研讨会 (https://youtu.be/GGMXJ8FWMSw?t=4335) 中所述。由于某种原因,以下设置系统时间的方法不起作用,并且 onPutResult 给了我错误

 //Example value
 int64_t utcTimestamp = 1619510994204;

 asyncput(WB_RES::LOCAL::TIME(),AsyncRequestOptions::Empty,utcTimestamp);

还有其他方法可以做到这一点吗?

解决方法

原来我误读了文档,时间值必须以微秒而不是毫秒的形式传递。最小时间值是 1483228800000000 在这里回答-> Movesense,setting the system time