Ignore:
Timestamp:
Sep 20, 2021, 5:16:50 PM (3 years ago)
Author:
Sanahuja Guillaume
Message:

handle ack in vrpnlite

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairSensorActuator/src/VrpnClient_impl.cpp

    r447 r448  
    202202        timeout.tv_sec=0;
    203203        timeout.tv_usec=100000;
     204  uint16_t vrpnliteCounter=0;
    204205                       
    205206  while (!self->ToBeStopped()) {
     
    321322     
    322323      mutex->ReleaseMutex();
     324     
     325      if(trackables.size()!=0) {
     326        vrpnliteCounter++;//send ack to monitor connection on vrpnlite
     327        //on bth, vrpn is configured to 50Hz, send ack at 1Hz
     328        if(vrpnliteCounter==50) {
     329          vrpnliteCounter=0;
     330          char data=0;
     331          dataSocket->SendMessage(&data,sizeof(char));
     332        }
     333      }
    323334    }
    324335  }
Note: See TracChangeset for help on using the changeset viewer.