Changeset 19890

Show
Ignore:
Timestamp:
04/02/07 09:32:39 (2 years ago)
Author:
patrick
Message:

MFT [rev 19889]: 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/trunk/modules/gadgeteer/drivers/Intersense/IntersenseAPI/IntersenseAPIStandalone.cpp

    r19729 r19890  
    4141         mActive = true; 
    4242      } 
     43 
     44      ISD_GetTrackerConfig(mHandle, &mInfo, true); 
    4345   } 
    4446   return mActive; 
  • juggler/trunk/modules/gadgeteer/drivers/Intersense/IntersenseAPI/IntersenseAPIStandalone.h

    r19729 r19890  
    214214   } 
    215215 
     216   /** 
     217    * Returns an identifier (ISD_SYSTEM_MODEL) describing the type of system. 
     218    */ 
     219   int getSystemModel() const 
     220   { 
     221      return mInfo.TrackerModel; 
     222   } 
     223 
     224   /** 
     225    * Returns an identifier (ISD_SYSTEM_TYPE) describing 3DOF or 6DOF. 
     226    */ 
     227   int getSystemType() const 
     228   { 
     229      return mInfo.TrackerType; 
     230   } 
     231 
     232   /** 
     233    * Returns an identifier (ISD_INTERFACE_TYPE) describing the communication 
     234    * interface. 
     235    */ 
     236   int getInterfaceType() const 
     237   { 
     238      return mInfo.Interface; 
     239   } 
     240 
    216241   // 
    217242   //////////// 
     
    316341   { 
    317342      return mData.Station[i].Orientation[3]; 
     343   } 
     344 
     345   /** 
     346    * Gets the time stamp of the i'th receiver.  
     347    */ 
     348   float timeStamp(const unsigned int i) const 
     349   { 
     350      return mData.Station[i].TimeStamp; 
    318351   } 
    319352 
     
    339372   ISD_STATION_INFO_TYPE   mConfigData[ISD_MAX_STATIONS]; 
    340373   ISD_TRACKER_DATA_TYPE   mData; 
     374   ISD_TRACKER_INFO_TYPE   mInfo; 
    341375}; 
    342376