Kgetconfig (frame id 7, Kgetconfigresp (frame id 8, 7 kgetconfig (frame id 7 – PNI SeaTRAX User Manual

Page 51: 8 kgetconfigresp (frame id 8

Advertising
background image

PNI Sensor Corporation

DOC#1018154 r02

SeaTRAX User Manual

Page 46

After this second calibration, the coefficients values from the second calibration are

immediately applied, even thought kSave has not been sent. If the SeaTRAX is now

powered down and powered back up again, kMagCoeffSet = 2 would be recalled and

its coefficient values would be applied, since kMagCoeffSet = 3 was not saved and

kMagCoeffSet = 2 was the last saved calibration set.

kAccelCoeffSet

(Config. ID 19

d

)

This setting provides flexibility to store up to three (3) sets of accelerometer

calibration coefficients in the module. As with kMagCoeffSet, this can be useful for

storing coefficients under a variety of conditions, such as different temperature

settings, or if you want to fine-tune the coefficient values but not lose the current set.

The initial default is set 0. To store a new set of coefficients, first establish the set

number (0 to 2) using kAccelCoeffSet, then perform an accelerometer calibration.

The new coefficient values will be stored in volatile memory in the defined set

number and will be implemented immediately. Save the coefficient set to non-

volatile memory by sending kSave. When the SeaTRAX is powered down and back

up again, it will load the last saved coefficient set.

7.3.7

kGetConfig (frame ID 7

d

)

This frame queries the SeaTRAX for the current internal configuration value. The

payload contains the configuration ID requested.

7.3.8

kGetConfigResp (frame ID 8

d

)

The response to kGetConfig is given below and contains the configuration ID and value.

Example: If a request to get the set declination angle, the payload would look like:

1

Declination

Angle (Float32)

10.0

Declination ID

Payload

Config ID

ID Specific

Value

UInt8

Payload

Config ID

UInt8

Payload

Advertising