forked from Archive/PX4-Autopilot
Fix drop offset: We want to drop so that the wind carries the bottle into the drop zone
This commit is contained in:
parent
d604985e08
commit
ef0a0a1a6e
|
@ -566,8 +566,8 @@ BottleDrop::task_main()
|
||||||
wind_direction_e = wind.windspeed_east / windspeed_norm;
|
wind_direction_e = wind.windspeed_east / windspeed_norm;
|
||||||
}
|
}
|
||||||
|
|
||||||
x_drop = x_t + x * wind_direction_n;
|
x_drop = x_t - x * wind_direction_n;
|
||||||
y_drop = y_t + x * wind_direction_e;
|
y_drop = y_t - x * wind_direction_e;
|
||||||
map_projection_reproject(&ref, x_drop, y_drop, &_drop_position.lat, &_drop_position.lon);
|
map_projection_reproject(&ref, x_drop, y_drop, &_drop_position.lat, &_drop_position.lon);
|
||||||
_drop_position.alt = _target_position.alt + _alt_clearance;
|
_drop_position.alt = _target_position.alt + _alt_clearance;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue