Copter: fix init order of ekfYawReset_ms

This commit is contained in:
Randy Mackay 2015-09-24 15:57:22 +09:00
parent 317779f976
commit cdd4570f02
2 changed files with 3 additions and 3 deletions

View File

@ -125,8 +125,7 @@ Copter::Copter(void) :
#endif #endif
in_mavlink_delay(false), in_mavlink_delay(false),
gcs_out_of_time(false), gcs_out_of_time(false),
param_loader(var_info), param_loader(var_info)
ekfYawReset_ms(0)
{ {
memset(&current_loc, 0, sizeof(current_loc)); memset(&current_loc, 0, sizeof(current_loc));

View File

@ -208,7 +208,8 @@ private:
// scale factor applied to velocity controller gain to prevent optical flow noise causing excessive angle demand noise // scale factor applied to velocity controller gain to prevent optical flow noise causing excessive angle demand noise
float ekfNavVelGainScaler; float ekfNavVelGainScaler;
uint32_t ekfYawReset_ms; // system time in milliseconds of last recorded yaw reset from ekf
uint32_t ekfYawReset_ms = 0;
// GCS selection // GCS selection
AP_SerialManager serial_manager; AP_SerialManager serial_manager;