# Differences

This shows you the differences between two versions of the page.

 — tagwiki:tools:calibration:fix_offset_3d [2017/08/04 13:42] (current)das39 created 2017/08/04 13:42 das39 created 2017/08/04 13:42 das39 created Line 1: Line 1: + ====== fix_offset_3d ====== + Estimate the offset in each axis of a triaxial field measurement from an accelerometer or magnetometer. + ----- + ===== Syntax ===== + === Matlab & Octave === + <​code>​ + [X,G] = fix_offset_3d(X) + ​ + === R === + <​code>​ + list <- fix_offset_3d(X) + ​ + + ===== Description ===== + Estimate the offset in each axis of a triaxial field measurement,​ e.g., from an accelerometer or magnetometer. This is useful for correcting drift or calibration errors in a sensor. + + ===== Inputs ===== + ^ Input var ^ Description ^ Units ^ + |X| is a sensor structure/​list or matrix containing measurements from a triaxial field sensor such as an accelerometer or magnetometer. X can be in any units and frame.|N/A| + + ===== Outputs ===== + ^ Output var ^ Description ^ Units^ + |X| is a sensor structure/​list or matrix containing the adjusted triaxial sensor measurements. It is the same size and has the same sampling rate and units as the input data. If the input is a sensor structure/​list,​ the output will be also. |N/A| + |G| is a calibration structure containing one field: G.poly/​G$poly. The first column of G.poly/​G$poly contains 1 as this function does not adjust the scale factor of X. The second column of G.poly/​G\$poly is the offset added to each column of X.|N/A| + + ===== Notes & assumptions ===== + -This function is only usable for field sensors. It will not work for gyroscope data. + + ===== Example ===== + + Will come soon! + + ===== About ===== + [[bugs@animaltags.org]] + Last modified: 4 August 2017
• tagwiki/tools/calibration/fix_offset_3d.txt