Skip to content

Commit

Permalink
UGCS-9516 Add parameter which determine GPS status when autopilot sho…
Browse files Browse the repository at this point in the history
…uld switch to barometer.
  • Loading branch information
AlexeyChernenko committed Aug 21, 2017
1 parent 02836fd commit a055f1c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libraries/AP_NavEKF2/AP_NavEKF2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1282,8 +1282,7 @@ uint32_t NavEKF2::getLastYawResetAngle(float &yawAngDelta)
float temp_yawAng;
uint32_t lastCoreYawReset_ms = core[primary].getLastYawResetAngle(temp_yawAng);
if (lastCoreYawReset_ms > lastYawReset_ms) {
//yawAngDelta = wrap_PI(yawAngDelta + temp_yawAng);
yaw_reset_data.core_delta = wrap_PI(yawAngDelta + temp_yawAng);
yawAngDelta = wrap_PI(yawAngDelta + temp_yawAng);
lastYawReset_ms = lastCoreYawReset_ms;
}

Expand Down

0 comments on commit a055f1c

Please sign in to comment.