虚心小蚂蚁

文章
9
资源
0
加入时间
3年0月28天

linux中运行vxworks,跨平台(WIndows, Linux, VxWorks) getTickCount实现

在c/c++代码中,有时需要实现计时功能,比如某个时刻开始计时,然后到另一时刻时,计算距开始计时的时刻毫秒数。通过在起始时刻和停止时刻分别调用下面的代码,返回的时间相减,便可获得这段时间的毫秒数,其跨Windows、Linux、VxWorks三个平台。#ifdef WIN32#define OS_WINDOWS WIN32#include #endif#ifdef LINUX#include #i...

BlueROV-16: Solve the initialization problem

Group meeting: Reactive Control of Autonomous Drones.Bharath taught me how to debug a python project for the whole afternoon. Learned a lot!Try to solve the initialization problem by using: