-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VMG using wind and speedThroughWater (#128)
* VMG using wind and speedThroughWater * remove unused conditional statement
- Loading branch information
1 parent
ec806ac
commit 90eabdb
Showing
2 changed files
with
16 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module.exports = function (app) { | ||
return { | ||
group: 'course data', | ||
optionKey: 'vmg_Wind_STW', | ||
title: | ||
'Velocity Made Good to wind (based on wind.angleTrueWater and speedThroughWater)', | ||
derivedFrom: [ | ||
'environment.wind.angleTrueWater', | ||
'navigation.speedThroughWater' | ||
], | ||
calculator: function (angleTrueWater, speedThroughWater) { | ||
return [ { path: 'performance.velocityMadeGood', value: Math.cos(angleTrueWater) * speedThroughWater } ] | ||
} | ||
} | ||
} |