Changeset 19889

Show
Ignore:
Timestamp:
04/02/07 09:31:22 (1 year ago)
Author:
patrick
Message:

Upon successfully connecting to the hardware, call ISD_GetTrackerConfig()
and store the returned data in the new mInfo data member.

Submitted by: Todd Furlong (todd at inv3rsion dot com)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/branches/2.0/modules/gadgeteer/drivers/Intersense/IntersenseAPI/IntersenseAPIStandalone.cpp

    r17118 r19889  
    4747         mActive = true; 
    4848      } 
     49 
     50      ISD_GetTrackerConfig(mHandle, &mInfo, true); 
    4951   } 
    5052   return mActive; 
  • juggler/branches/2.0/modules/gadgeteer/drivers/Intersense/IntersenseAPI/IntersenseAPIStandalone.h

    r17118 r19889  
    220220   } 
    221221 
     222   /** 
     223    * Returns an identifier (ISD_SYSTEM_MODEL) describing the type of system. 
     224    */ 
     225   int getSystemModel() const 
     226   { 
     227      return mInfo.TrackerModel; 
     228   } 
     229 
     230   /** 
     231    * Returns an identifier (ISD_SYSTEM_TYPE) describing 3DOF or 6DOF. 
     232    */ 
     233   int getSystemType() const 
     234   { 
     235      return mInfo.TrackerType; 
     236   } 
     237 
     238   /** 
     239    * Returns an identifier (ISD_INTERFACE_TYPE) describing the communication 
     240    * interface. 
     241    */ 
     242   int getInterfaceType() const 
     243   { 
     244      return mInfo.Interface; 
     245   } 
     246 
    222247   // 
    223248   //////////// 
     
    322347   { 
    323348      return mData.Station[i].Orientation[3]; 
     349   } 
     350 
     351   /** 
     352    * Gets the time stamp of the i'th receiver.  
     353    */ 
     354   float timeStamp(const unsigned int i) const 
     355   { 
     356      return mData.Station[i].TimeStamp; 
    324357   } 
    325358 
     
    345378   ISD_STATION_INFO_TYPE   mConfigData[ISD_MAX_STATIONS]; 
    346379   ISD_TRACKER_DATA_TYPE   mData; 
     380   ISD_TRACKER_INFO_TYPE   mInfo; 
    347381}; 
    348382