bugfix
Patrice Poly: After investigation, it appears that the probes are reversed due to a little mistake when someone changed how the probe calculations are made. probe 0 is under the plane. probe 4 should be downwind, probes 1,2 and 3 should be upwind.
This commit is contained in:
parent
2a29c8c604
commit
ac90d8ff8a
1 changed files with 1 additions and 1 deletions
|
@ -171,7 +171,7 @@ void FGRidgeLift::update(double dt) {
|
||||||
// position is geodetic, need geocentric for advanceRadM
|
// position is geodetic, need geocentric for advanceRadM
|
||||||
SGGeod myGeodPos = SGGeod::fromDegM( probe_lon_deg[0], probe_lat_deg[0], 20000.0 );
|
SGGeod myGeodPos = SGGeod::fromDegM( probe_lon_deg[0], probe_lat_deg[0], 20000.0 );
|
||||||
SGGeoc myGeocPos = SGGeoc::fromGeod( myGeodPos );
|
SGGeoc myGeocPos = SGGeoc::fromGeod( myGeodPos );
|
||||||
double ground_wind_from_rad = _surface_wind_from_deg_node->getDoubleValue() * SG_DEGREES_TO_RADIANS + SG_PI;
|
double ground_wind_from_rad = _surface_wind_from_deg_node->getDoubleValue() * SG_DEGREES_TO_RADIANS;
|
||||||
|
|
||||||
// compute the remaining probes
|
// compute the remaining probes
|
||||||
for (unsigned i = 1; i < sizeof(probe_elev_m)/sizeof(probe_elev_m[0]); i++) {
|
for (unsigned i = 1; i < sizeof(probe_elev_m)/sizeof(probe_elev_m[0]); i++) {
|
||||||
|
|
Loading…
Reference in a new issue