[IGSTK-Users] Metal error getter
Patrick Cheng
patrick.p.cheng at gmail.com
Thu Aug 4 11:13:34 EDT 2011
Hi Thanh-ha
You are correct, you can write a method to check metal error similar to
Set/Get button information.
You can do that in igstkAscensionCommandInterpreter class.
After that, you need to do the following in the AscensionTracker.cxx
1. In the following function, add your call to set the MetalError detection
AscensionTracker::ResultType AscensionTracker::InternalOpen( void )
2. In the following method:
AscensionTracker::ResultType
AscensionTracker::InternalThreadedUpdateStatus(
void )
After the update:
m_CommandInterpreter->Update();
Check your metal error, and set it to tracker transform.
Please refer to line 218 and 221 of the igstkAscensionTracker.cxx file for
setting the error values.
Patrick
On Thu, Aug 4, 2011 at 7:38 AM, Thanh-Ha NGUYEN <nguyen.than.tu at gmail.com>wrote:
> Hi Patrick,
>
> I already looked at the 3DG API, but as I am using the serial port (RS232)
> to communicate with the tracker, I have no choice but to use the RS232
> Interface (the one which uses Bird files). See the medSAFE Guide attached,
> slide 52. Though, one could notice a reference to RS232 in the ATC3DGm.h
> file. But I chose to follow the documentation, and thus I used the RS232
> Interface. Details about the Metal error can be found in the de slide 248 of
> the guide. Note that the way this information is given by the tracker is
> similar to that of the "BUTTON". And this information has its getter
> (igstkAscensionCommandInterpreter.h : line 402). Now, why couldn't I just
> replicate the code related to the "BUTTON" and adjust it to the "METAL" ?
> Because both the "METAL" and the "BUTTON" information can be set on/off
> independently but are sent in a same data stream. And as the "BUTTON" byte
> comes first in the data stream, there is a need to locate the "METAL" byte
> depending on the "BUTTON" information state. I don't know whether I am
> understandable. Now, I can only advise you to refer to the guide (slide 248)
> if you want more detail.
>
> I will appreciate any help. Thank you in advance.
>
> Thanh-Ha.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/igstk-users/attachments/20110804/fca0c788/attachment.html>
More information about the IGSTK-Users
mailing list