public double GlideSlopeDescentRate(Vessel vessel, VesselData vesselData)
{
if (Double.IsNaN(courseStatus.courseSlope))
return 0; // maybe return NaN; fixme
var speed = vessel.srfSpeed;
if (speed > 0)
{
// need meters per second to follow glideslope
// so slope is V/H dimensionless
// multiply by H speed in M/S gives V speed in M/S
return courseStatus.courseSlope * speed;
}
else
{
return 0; // maybe return NaN; fixme
}
}