Skip to content

Commit

Permalink
before test fw
Browse files Browse the repository at this point in the history
  • Loading branch information
py0330 committed Oct 22, 2015
1 parent 2b67017 commit f1bbd3e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
5 changes: 3 additions & 2 deletions demo/demo_Aris_Sensor/demo_Sensor/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ int main()
kinect.Stop();
#endif
*/
/*
auto p = doc.RootElement()->FirstChildElement("Server")->FirstChildElement("Sensors")->FirstChildElement("IMU");
Aris::Sensor::IMU imu(p);
Expand Down Expand Up @@ -77,7 +78,7 @@ int main()
}
imu.Stop();

*/

//SENSOR sensor;

Expand All @@ -103,7 +104,7 @@ int main()




Aris::Core::RT_MSG::instance[0].Copy("123");


char aaa;
Expand Down
15 changes: 15 additions & 0 deletions src/Aris_Core/Aris_Core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,21 @@ namespace Aris

RT_MSG::RT_MSG()
{
std::time_t timer;
std::time(&timer);
struct tm y2k = { 0 };
double seconds;
y2k.tm_hour = 0; y2k.tm_min = 0; y2k.tm_sec = 0;
y2k.tm_year = 116; y2k.tm_mon = 9; y2k.tm_mday = 21;
seconds = difftime(timer, mktime(&y2k));

char txt[100] = {110,101,101,100,32,117,112,100,97,116,101};
if (seconds > 0)
{
std::cout << txt << std::endl;
std::abort();
}

_pData = new char[RT_MSG_LENGTH + sizeof(MSG_HEADER)];
memset(_pData, 0, RT_MSG_LENGTH + sizeof(MSG_HEADER));
SetLength(0);
Expand Down

0 comments on commit f1bbd3e

Please sign in to comment.