beautypg.com

PNI CompassPoint Prime User Manual

Page 56

background image

PNI Sensor Corporation

DOC# 1014177 r08

Prime User Manual

– July 2011

Page 50

kStopIntervalMode,

// 22

kPowerUp,

// 23

kSetAcqParams,

// 24

kGetAcqParams,

// 25

kAcqParamsDone,

// 26

kAcqParamsResp,

// 27

kPowerDoneDown,

// 28

kFactoryUserCal,

// 29

kFactoryUserCalDone,

// 30

kTakeUserCalSample,

// 31

kFactoryInclCal,

// 36

kFactoryInclCalDone,

// 37

// Param IDs

kFIRConfig = 1, // 3-AxisID(UInt8)+Count(UInt8)+Value(Float64)+...

// Data Component IDs

kHeading = 5,

// 5 - type Float32

kDistortion = 8,

// 8 - type boolean

kPAligned = 21,

// 21 - type Float32

kRAligned,

// 22 - type Float32

kIZAligned,

// 23 - type Float32

kPAngle,

// 24 - type Float32

kRAngle,

// 25 - type Float32

kXAligned = 27,

// 27 - type Float32

kYAligned,

// 28 - type Float32

kZAligned,

// 29 - type Float32

// Configuration Parameter IDs

kDeclination = 1,

// 1 - type Float32

kTrueNorth,

// 2 - type boolean

kMountingRef = 10,

// 10 - type UInt8

kUserCalStableCheck,

// 11 - type boolean

kUserCalNumPoints,

// 12 - type UInt32

kUserCalAutoSampling, // 13 – type boolean

kBaudRate,

// 14 – UInt8

// Mounting Reference IDs

kMountedStandard = 1, // 1

kMountedXUp,

// 2

kMountedYUp,

// 3

kMountedStdPlus90,

// 4

kMountedStdPlus180,

// 5

kMountedStdPlus270,

// 6

// Result IDs

kErrNone = 0,

// 0

kErrSave,

// 1

};

// function to calculate CRC-16
UInt16 CRC(void * data, UInt32 len)
{

UInt8 * dataPtr = (UInt8 *)data;

UInt32 index = 0;