rheh / fly-js

A JavaScript utility library focusing on aviation
MIT License
9 stars 2 forks source link

Typo in fly.js #2

Closed ghost closed 8 years ago

ghost commented 8 years ago

There is a typo in fly.js

Line 267 variable 'heading' is not defined.

flyjs.calculateHeadingAndGroundSpeed = function (trueAirSpeed, course, windSpeed, windDirection, roundTo) {

WindTriangleCalculator.calculateHeadingAndGroundSpeed(trueAirSpeed, heading, windSpeed, windDirection, roundTo);                                                                                          

return {
    heading: WindTriangleCalculator.getHeading(),
    groundSpeed: WindTriangleCalculator.getGroundSpeed()
};

};

rheh commented 8 years ago

@hat27533 thanks for the feedback that should be fixed now