123456789101112131415161718192021222324 |
- #include "car_status.h"
- #ifdef linux
- unsigned long GetTickCount()
- {
- struct timespec ts;
- clock_gettime(CLOCK_MONOTONIC,&ts);
- return (ts.tv_sec * 1000 + ts.tv_nsec/(1000*1000) );
- }
- #endif
- iv::CarStatus::CarStatus()
- {
- speed = 0;
- braking_pressure = 0;
- wheel_angle = 0;
- location = boost::shared_ptr<iv::GPS_INS>(new iv::GPS_INS);
- mRunTime.start();
- }
- iv::CarStatus::~CarStatus()
- {
- }
|