beautypg.com

PNI CompassPoint Prime User Manual

Page 69

background image

Prime User Manual r08

Page 63

// Ticks is a timer function. 1 tick = 10msec.

if(Ticks() > mTime)

{

// tell the unit to take a sample

SendComm(CommProtocol::kGetData);

mTime = Ticks() + 100; // take a sample every

// second

mStep++;

}

break;

}

case 3:

{

// Ticks is a timer function. 1 tick = 10msec.

if(Ticks() > mResponseTime)

{

Message("No response from the unit. Check

connection and try again\r\n");

mStep = 0;

}

break;

}


default:

break;

}

}