Browse Source

AP_AHRS_DCM.cpp: changed the direction of position projection to ensure correct behavious in crosswind

mission-4.1.18
Przemek Lekston 11 years ago committed by Andrew Tridgell
parent
commit
ae4814a773
  1. 2
      libraries/AP_AHRS/AP_AHRS_DCM.cpp

2
libraries/AP_AHRS/AP_AHRS_DCM.cpp

@ -886,7 +886,7 @@ bool AP_AHRS_DCM::get_position(struct Location &loc) @@ -886,7 +886,7 @@ bool AP_AHRS_DCM::get_position(struct Location &loc)
loc.flags.terrain_alt = 0;
location_offset(loc, _position_offset_north, _position_offset_east);
if (_flags.fly_forward && _have_position) {
location_update(loc, degrees(yaw), _gps.ground_speed() * _gps.get_lag());
location_update(loc, _gps.ground_course_cd() * 0.01f, _gps.ground_speed() * _gps.get_lag());
}
return _have_position;
}

Loading…
Cancel
Save