mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-19 04:20:35 +08:00
EKF: Add validity boolean to mag declination accessor
This commit is contained in:
committed by
Lorenz Meier
parent
1e610894b9
commit
e0bcfeb533
@@ -316,10 +316,12 @@ public:
|
||||
}
|
||||
|
||||
// Get the value of magnetic declination in degrees to be saved for use at the next startup
|
||||
// Returns true when the declination can be saved
|
||||
// At the next startup, set param.mag_declination_deg to the value saved
|
||||
void get_mag_decl_deg(float *val)
|
||||
bool get_mag_decl_deg(float *val)
|
||||
{
|
||||
*val = _mag_declination_to_save_deg;
|
||||
return _NED_origin_initialised && (_params.mag_declination_source & MASK_SAVE_GEO_DECL);
|
||||
}
|
||||
|
||||
virtual void get_accel_bias(float bias[3]) = 0;
|
||||
|
||||
Reference in New Issue
Block a user