Browse Source

AP_AHRS_DCM: compile error fix for low speed CPUs

Also correct initialisatoin order to remove compiler warning
master
Randy Mackay 10 years ago
parent
commit
4452aa8448
  1. 6
      libraries/AP_AHRS/AP_AHRS_DCM.h

6
libraries/AP_AHRS/AP_AHRS_DCM.h

@ -50,8 +50,10 @@ public: @@ -50,8 +50,10 @@ public:
_last_wind_time(0),
_last_airspeed(0.0f),
_last_consistent_heading(0),
_last_failure_ms(0),
_imu1_weight(0.5f)
#if HAL_CPU_CLASS >= HAL_CPU_CLASS_75
_imu1_weight(0.5f),
#endif
_last_failure_ms(0)
{
_dcm_matrix.identity();

Loading…
Cancel
Save