MAGYC-NLS
Proposed method for the full calibration of a three-axis magnetometer and a three-axis gyroscope using magnetic field and angular rate measurements. This particular approach is based on a least squares optimization and poses the probems as a non-linear least squares optimization problem.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
magnetic_field |
ndarray or list
|
Magnetic field measurements in a 3xN or Nx3 numpy array or list. |
required |
angular_rate |
ndarray or list
|
Angular rate measurements in a 3xN or Nx3 numpy array or list. |
required |
time |
ndarray or list
|
Time stamps of the measurements. |
required |
Returns:
Name | Type | Description |
---|---|---|
hard_iron |
ndarray
|
Hard iron bias. |
soft_iron |
ndarray
|
Soft iron matrix. |
gyro_bias |
ndarray
|
Gyroscope bias. |
calibrated_magnetic_field |
ndarray
|
Calibrated magnetic field measurements. |
calibrated_angular_rate |
ndarray
|
Calibrated angular rate measurements. |
Raises:
Type | Description |
---|---|
TypeError
|
If the magnetic field, angular rate, and time are not numpy arrays or lists. |
ValueError
|
If the magnetic field and angular rate are not 3xN or Nx3 numpy arrays, or if the time is not a 1D numpy array. |
Source code in magyc/methods/magyc.py
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 |
|