ADD: added Movement calculation and a Tracklist class
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
#include "Entities/Movement.hpp"
|
||||
#include "WHISPER/InternalUDPListener.hpp"
|
||||
#include "WHISPER/InternalUDPSender.hpp"
|
||||
#include "WHISPER/Messages/Message.hpp"
|
||||
@@ -13,7 +14,7 @@
|
||||
|
||||
|
||||
|
||||
#define calculationPeriode 100
|
||||
#define calculationPeriode 200
|
||||
|
||||
namespace Entities
|
||||
{
|
||||
@@ -33,7 +34,6 @@ namespace Entities
|
||||
GroundTruthPort_(GroundTruthPort),
|
||||
CommandPort_(CommandPort),
|
||||
CommandIPAddress_(CommandIPAddress)
|
||||
|
||||
{
|
||||
|
||||
}
|
||||
@@ -103,6 +103,10 @@ namespace Entities
|
||||
|
||||
auto end = std::chrono::steady_clock::now();
|
||||
std::chrono::milliseconds::rep duration = std::chrono::duration_cast<std::chrono::milliseconds>(end - start).count();
|
||||
|
||||
Movement_.updatePosition(duration);
|
||||
|
||||
|
||||
specificPhysicsCalculations(duration);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user