Skip to content
Snippets Groups Projects
Commit cdd4570f authored by Randy Mackay's avatar Randy Mackay
Browse files

Copter: fix init order of ekfYawReset_ms

parent 317779f9
No related branches found
No related tags found
No related merge requests found
......@@ -125,8 +125,7 @@ Copter::Copter(void) :
#endif
in_mavlink_delay(false),
gcs_out_of_time(false),
param_loader(var_info),
ekfYawReset_ms(0)
param_loader(var_info)
{
memset(&current_loc, 0, sizeof(current_loc));
......
......@@ -208,7 +208,8 @@ private:
// scale factor applied to velocity controller gain to prevent optical flow noise causing excessive angle demand noise
float ekfNavVelGainScaler;
uint32_t ekfYawReset_ms;
// system time in milliseconds of last recorded yaw reset from ekf
uint32_t ekfYawReset_ms = 0;
// GCS selection
AP_SerialManager serial_manager;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment