@DrTon @tstellanova The issue is in this line, this else case is missing:
```
 else {
							mag_decl = ekf_params.mag_decl;
						}
```