Skip to content

Commit

Permalink
Fix data type
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterBowman committed Jul 19, 2019
1 parent 56f7fe6 commit 53489a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/YarpPlugins/TechnosoftIpos/PvtPeriodicThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void PvtPeriodicThread::run()
mutex.unlock();

pvtPoint.v = (lastTargetReceived - previousTarget) / period;
pvtPoint.t = period;
pvtPoint.t = period * 1000;

createPvtMessage(pvtPoint, msg);

Expand All @@ -56,7 +56,7 @@ void PvtPeriodicThread::run()
else
{
CD_SUCCESS("Sent to canId %d: pos %f, vel %f, time %d, ic %d.\n",
technosoftIpos->canId, pvtPoint.p, pvtPoint.v, period, technosoftIpos->pvtPointCounter);
technosoftIpos->canId, pvtPoint.p, pvtPoint.v, pvtPoint.t, technosoftIpos->pvtPointCounter);
}
}

Expand Down

0 comments on commit 53489a8

Please sign in to comment.