HassoPlattnerInstituteHCI / dualpantoframework

DualPanto Framework
7 stars 0 forks source link

accessing m_godObject before pantophysics is instantiated. #302

Open JotaroS opened 4 years ago

JotaroS commented 4 years ago

ioLoop is pararelly starts up with physicsMainLoop, which accessing pantoPhysics.m_godObject earlier than it's instantiated.

void ioLoop()
{
    PERFMON_START("[a] Receive serial");
    DPSerial::receive();
    auto connected = DPSerial::ensureConnection();
    PERFMON_STOP("[a] Receive serial");

    PERFMON_START("[b] Send positions");
    //DPSerial::sendDebugData();
    //DPSerial::sendInstantDebugLog("\n");
    if (connected && sendLimiter.step())
    {
        DPSerial::sendPosition();

currently fixed by adding delay after ioLoop::setup();

JotaroS commented 4 years ago

This has been hard-coded. still need to call physicsMain setup earlier than ioLoop.