Hey,

I have a problem with gps driver. I want to communicate with localbb about message, like this:


int rt3xxxPG::MainSetup()
{

    if(!(this->blackboard_device = deviceTable->GetDevice(this->blackboard_addr)))
      {
        PLAYER_ERROR("unable to locate suitable b device");
        return(-1);
      }
      if(this->blackboard_device->Subscribe(this->InQueue) != 0)
      {
        PLAYER_ERROR("unable to subscribe to blackboard device");
        return(-1);
      }

     printf("subscribe bb\n") ;
     player_blackboard_entry_t data; // = new player_blackboard_entry_t();
     data.group = "GPS\0";
     //data.data_count = 5;
     data.key="Target\0";
     //data.key_count = 8;
     //data.data = 0;
     //data.data_count = 0;

     playerc_blackboard_t *testd = (playerc_blackboard_t*) blackboard_device;
     //playerc_blackboard_subscribe_to_key(testd, "Target\0", "GPS\0", &data);
     blackboard_device->Request(this->InQueue, PLAYER_MSGTYPE_REQ, PLAYER_BLACKBOARD_REQ_SUBSCRIBE_TO_KEY, (void*)&data, 0,NULL);
     //delete(data);

     printf("done subscribe bb\n") ;

     return 0;
}

My questions is, is it actually possible? and what is wrong in my code, why its don't work??

Thanks.

Igor