how?

Solved!
Posted in General by David Kachlon Sat May 12 2018 17:06:04 GMT+0000 (Coordinated Universal Time)·2·Viewed 251 times

How can I access these features -- getLocStatus method which indicates the pen localisation status. getDisturbanceLevel method which indicates the maximum disturbance value reached ( this value is between 0 and 255 per sensor). getInnovation method which returns an array of 32 indicators of perturbation per sensor (those values are between 0 and 255 ). I've tried, a request and couldn't figure out which one it was... I subscribed to the event and nothing happens, and I tried ev.getInnovation() as well as the other ones with no luck, I'm coding in objective-c
May 22, 2018

Hello,

The magnetic indicator features are available since the firmware version 4.0.16.0 of the Slate 2 ( or firmware version 3.0.16.0 for the the Slate ) so it’s mandatory to update you Slate firmware via the Imagink App for PC or MAC .

In order to detect the magnetic disturbance and use those features you should subscribe to AUTO_LOC_QUALITY like below:

slateManager->subscribe( AUTO_STATUS |
AUTO_SOFTWARE_EVENTS |
AUTO_HARDWARE_EVENTS |
AUTO_LOC_QUALITY) ;

Then you can receive the EVT_LOC_QUALITY event by adding the corresponding case to the processEvent method like below :

case EVT_LOC_QUALITY:
{
EventLocQuality &ev=event.LocQuality;
NSLog(@"Localization status : %d",(int)ev.getLocStatus());
NSLog(@"Disturbance level : %d",(int)ev.getDisturbanceLevel());
}
break ;

Rabeb for the ISKN team.


marked this as solved
Markdown is allowed